2014-10-15 16:19:00 +0200, Thorsten Glaser:
[...]
> tglase@tglase:~ $ dash -c 'IFS=; x=abc; printf "<%s>\n" ${x#$*}' x a b | sed
> -n l
> $
> $
> tglase@tglase:~ $ ksh93 -c 'IFS=; x=abc; printf "<%s>\n" ${x#$*}' x a b | sed
> -n l
> $
> tglase@tglase:~ $ mksh -c 'IFS=; x=abc; printf "<%s>\n" ${x#
On Wed, 15 Oct 2014, Stephane Chazelas wrote:
> $ mksh -c 'IFS=; x=abc; printf "<%s>\n" ${x#$*}' x a b | sed -n l
> <\a\300a>$
> $
Interesting… but all shells diverge on this one.
tglase@tglase:~ $ bash -c 'IFS=; x=abc; printf "<%s>\n" ${x#$*}' x a b | sed -n
l
$
tglase@tglase:~ $ dash -c 'IFS=
2014-10-15 12:13:06 +0200, Thorsten Glaser:
> On Mon, 13 Oct 2014, Stephane Chazelas wrote:
>
> > $*, $@, "$*" were not special in any way. They just underwent
> > the same rules as other variables. Only "$@" was.
>
> This changed in POSIX sh though. I remember having
> to change some things in mks
3 matches
Mail list logo