-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2127
Vidar Holen edited this page Nov 3, 2022
·
1 revision
(Or "To use cases with ;;&
, specify #!/usr/bin/env bash
)
#!/usr/bin/env bash
var=${ mycmd; };
or
#!/usr/bin/env ksh
case "$1" in
foo) echo "Foo!" ;;&
f*) echo "F-something at least" ;;
esac
#!/usr/bin/env ksh
var=${ mycmd; };
or
#!/usr/bin/env bash
case "$1" in
foo) echo "Foo!" ;;&
f*) echo "F-something at least" ;;
esac
You are using a shell syntax feature not supported by the script's shell. Either rewrite the construct, or switch to a different shell interpreter.
None
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!