[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Differing behaviour of shells regarding simple commands with parameter assignments



Hello Timo,

Timo Weingärtner <timo@tiwe.de> (26/12/2012):
> bash, zsh, posh output 121
> 
> busybox sh, dash, (m)ksh output 122
> 
> checkbashisms doesn't complain.
> 
> Which of the three is wrong? Where shall I file bugs?
> 
> When bar is not a function but an external script the output is 121
> with all the shells.

you may want to check something like that:
  http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_05

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: