mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 03:52:47 +08:00
Fix usage of osascript in help
Work around a macOS osascript bug in 10.12.5 which prevented help from working. See #4035.
This commit is contained in:
parent
5c140e5570
commit
3061eed647
|
@ -131,7 +131,8 @@ function help --description 'Show help for the fish shell'
|
||||||
# OS X /usr/bin/open swallows fragments (anchors), so use osascript
|
# OS X /usr/bin/open swallows fragments (anchors), so use osascript
|
||||||
# Eval is just a cheesy way of removing the hash escaping
|
# Eval is just a cheesy way of removing the hash escaping
|
||||||
if test "$fish_browser" = osascript
|
if test "$fish_browser" = osascript
|
||||||
osascript -e 'open location "'(eval echo $page_url)'"'
|
set -l opencmd 'open location "'(eval echo $page_url)'"'
|
||||||
|
osascript -e 'try' -e $opencmd -e 'on error' -e $opencmd -e 'end try'
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user