Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fish: Unknown command 'less -R' #22

Open
toonn opened this issue Jul 17, 2019 · 0 comments
Open

fish: Unknown command 'less -R' #22

toonn opened this issue Jul 17, 2019 · 0 comments

Comments

@toonn
Copy link

toonn commented Jul 17, 2019

There seems to be a problem in parsing of env vars like PAGER.
We noticed when running history that fish errored on the pager, you can find all the details in fish-shell/fish-shell#5994, reproduced in part here for convenience:

toonn@terra ~> history
fish: Unknown command 'less -R'
/nix/store/m8j4gqqkdy3nm0v738kjivimnlqkdqpx-fish-3.0.2/share/fish/functions/history.fish (line 99): 
                builtin history search $search_mode $show_time $max_count $_flag_case_sensitive $_flag_reverse $_flag_null -- $argv | $pager
                                                                                                                                      ^
in function 'history'
	called on standard input

toonn@terra ~> set PAGER less
toonn@terra ~> echo $PAGER
less
toonn@terra ~> history
echo $PAGER
set PAGER less
env PAGER=less history # <- this didn't work because history's a function probably

@adisbladis tracked this down to the fenv call here.

kevingriffin added a commit to kevingriffin/dotfiles that referenced this issue Sep 28, 2019
kevingriffin added a commit to kevingriffin/dotfiles that referenced this issue Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant