mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-04 01:03:26 +08:00
Revert "help: Use variable-as-command instead of eval"
We do a bunch of escaping before to make `eval` work, and that needs to be removed as well or fragment-urls don't work. This reverts commit e9568069a76d7bb0694ef85f7fcf8e6621efdd9b.
This commit is contained in:
parent
c78e6a3ccf
commit
121d61cf31
@ -165,14 +165,14 @@ function help --description 'Show help for the fish shell'
|
||||
case '*'
|
||||
printf (_ 'help: Help is being displayed in %s.\n') $fish_browser[1]
|
||||
end
|
||||
$fish_browser $page_url &
|
||||
eval "$fish_browser $page_url &"
|
||||
else
|
||||
# Work around lynx bug where <div class="contents"> always has the same formatting as links (unreadable)
|
||||
# by using a custom style sheet. See https://github.com/fish-shell/fish-shell/issues/4170
|
||||
set -l local_file 0
|
||||
if $fish_browser --version 2>/dev/null | string match -qr Lynx
|
||||
if eval $fish_browser --version 2>/dev/null | string match -qr Lynx
|
||||
set fish_browser $fish_browser -lss={$__fish_data_dir}/lynx.lss
|
||||
end
|
||||
$fish_browser $page_url
|
||||
eval $fish_browser $page_url
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user