Le Sun, 17 Nov 2013 22:50:14 +0000 (UTC)
Thorsten Glaser a écrit:
> Seb dixit:
>
> >[ ${x#X} = $y ] || echo "BUG the 2nd!"
>
> I think this must be … = "$y" to be fair. But that was not the
> problem.
Actually, I should have used a constant in the second parts in all the
tests, it would have been more accurate.
> >And here are the results you get running it with different shells:
>
> tg@blau:~ $ mksh debug.sh a b c
> 3
> 2
> 1
> tg@blau:~ $ mksh -c 'print $KSH_VERSION'
> @(#)MIRBSD KSH R48 2013/11/17
>
> Fixed in CVS HEAD now.
I wanted to test, but what I fetch with cvs by following the
instructions from the mksh's web page does not compile. This is the
only thing I get:
In file included from lalloc.c:21:0:
sh.h:671:24: fatal error: sh_flags.gen: No such file or directory
compilation terminated
Chair/keyboard interface problem (I'm not familiar at all with
cvs) or not? :)
Take care,
Seb.