Files
fish-shell/tests/checks/__fish_posix_shell.fish
Johannes Altmanninger 7ca78e7178 share/functions: fix path to /bin/sh on android
As mentioned in https://github.com/fish-shell/fish-shell/issues/12055#issuecomment-3554869126

> instances of `/bin/sh` as freestanding commands within `.fish`
> files are most likely not automatically handled by `termux-exec`

and

> This topic is complicated by the fact that some Android ROMs _do_
> contain real `/bin/sh` files

Core uses /system/bin/sh on Android.  Let's do the same from script
(even if /bin/sh exists), for consistency.
2025-11-23 12:30:22 +01:00

6 lines
82 B
Fish

# RUN: %fish %s
set -l sh (__fish_posix_shell)
command -v $sh
# CHECK: {{.*/sh}}