[Toybox] Still poking at shell corner cases...
Rob Landley
rob at landley.net
Mon Jul 1 12:32:19 PDT 2019
bash:
$ cat << one << two
> hello
> two
> one
> and
> two
and
$
dash:
$ cat << one << two
> hello
> two
> one
> and
> two
and
$
mksh in terminal app on android:
$ cat << one << two
> hello
> two
> one
> and
> two
/system/bin/sh: can't create temporary file /data/local/shxijx9k.tmp: Permission denied
$
So it consumes the HERE document inputs in sequence, but only the last is passed to stdin. (And mksh is doing whatever it's doing, can't tell because "security" prevents it from working. I should dig up my M phone and see what it did back when it worked.)
Rob.
More information about the Toybox
mailing list