IFS=; set a b; [[ $* = $1$2 ]]

2014-12-09 Thread Stephane Chazelas
(with yesterday's git head and R46) $ mksh -c 'IFS=; [[ $* = ab ]]; echo $?' sh a b 1 $ mksh -c 'IFS=; [[ $* = a ]]; echo $?' sh a b 0 Expected the reverse. It works ok with [[ $* = ab ]]. Also: $ mksh -c 'IFS=; [[ $@ = a ]]; echo $?' sh a b 0 $ mksh -c 'IFS=; case $@ in a) echo a; esac' sh a

Re: IFS=; set a b; [[ $* = $1$2 ]]

2014-12-09 Thread Thorsten Glaser
Stephane Chazelas dixit: (with yesterday's git head and R46) Hm, I changed some things wrt. unquoted $* to be more bash-like, but… apparently, there is still loads to do. Not that I'd expect anyone to use anything but [[ $* = ... ]]. Indeed. (R46 gave a a there.) Ah, that is probably the