1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

tweak for compat with broken /bin/sh on AIX ibm.risc

AIX on ibm.risc comes with a broken version of ksh88 as /bin/sh
where the following causes breakage in the parser (spurious syntax
errors):

	(set -o posix) 2>/dev/null && set -o posix

However, prefixing it with 'command' (while keeping the subshell)
circumvents the problem. So, why not.

	(command set -o posix) 2>/dev/null && set -o posix
This commit is contained in:
Martijn Dekker 2021-01-19 22:35:41 +00:00
parent e20c0c6b5d
commit 3b19944e07
16 changed files with 16 additions and 16 deletions

View file

@ -24,7 +24,7 @@
case $ZSH_VERSION in
?*) emulate ksh ;;
*) (set -o posix) 2>/dev/null && set -o posix ;;
*) (command set -o posix) 2>/dev/null && set -o posix ;;
esac
command=$0