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:
parent
e20c0c6b5d
commit
3b19944e07
16 changed files with 16 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue