tests __fish_posix_shell: inline a variable

`command -v $(foo)` is actually allowed, unlike `command $(foo)`.
This commit is contained in:
Johannes Altmanninger
2026-06-17 12:03:25 +09:00
parent 8b3673a2fc
commit abc75ebbc0

View File

@@ -1,5 +1,4 @@
# RUN: %fish %s
set -l sh (__fish_posix_shell)
command -v $sh
command -v (__fish_posix_shell)
# CHECK: {{.*/sh}}