Files
termux-packages/packages/fish/0010-fix-some-absolute-paths.patch
termux-pacman-bot 4e4350e048 fix(main/fish): prepend @TERMUX_PREFIX@ to /bin/sh in two files
- Fixes https://github.com/termux/termux-packages/issues/27210

- I searched through the code and did some calculations, and as far as I can tell, these two instances of `/bin/sh` seem to be the only ones that are highly likely to produce the error on affected devices.
2025-11-13 07:06:43 +00:00

23 lines
1.1 KiB
Diff

--- a/share/functions/fish_update_completions.fish
+++ b/share/functions/fish_update_completions.fish
@@ -26,7 +26,7 @@ function fish_update_completions --description "Update man-page based completion
# Orphan the job so that it continues to run in case of an early exit (#6269)
# Note that some distros split the manpage completion script out (#7183).
# In that case, we silence Python's failure.
- /bin/sh -c '
+ @TERMUX_PREFIX@/bin/sh -c '
c=$(cat)
( printf %s "$c" | "$@" ) >/dev/null 2>&1 &
' -- $update_argv $argv
--- a/share/functions/help.fish
+++ b/share/functions/help.fish
@@ -228,7 +228,7 @@ chromium-browser
# The space before the /c is to prevent msys2 from expanding it to a path
$fish_browser " /c" start $page_url
else if contains -- $fish_browser[1] $graphical_browsers
- /bin/sh -c '( "$@" ) &' -- $fish_browser $page_url
+ @TERMUX_PREFIX@/bin/sh -c '( "$@" ) &' -- $fish_browser $page_url
else
$fish_browser $page_url
end