Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: sh emulation POSIX non-conformances (no word splitting upon arithmetic expansion)



2021-04-11 18:57:26 +0100, Stephane Chazelas:
> Some non-POSIX conformances I can think of ATM:
[...]

Another one:

$ zsh --emulate sh -c 'IFS=2; printf "<%s>\n" $((11*11))'
<121>

While POSIX (beleive it or not) requires:

<1>
<1>

Again, that's one of the cases where many shells (most ash-based ones,
pdksh, yash at least) behaved like zsh but switched for POSIX
compliance (even though that hardly makes sense).

-- 
Stephane




Messages sorted by: Reverse Date, Date, Thread, Author