Hi,
On Sat, 05 Dec 2015 08:03:32 +0900,
Nicholas Bamber wrote:
> It is not releveant how this works in other shells (or even other
> versions of ksh). All that matters is whether this syntax is defined by the
> POSIX standard. It's not even documented as a bash feature let alone a POSIX
Satoh,
It is not releveant how this works in other shells (or even other
versions of ksh). All that matters is whether this syntax is defined by
the POSIX standard. It's not even documented as a bash feature let alone
a POSIX standard.
It may be of interest to you to be reminded t
Hi,
> The problem seems to be that you are using "${v+set}" rather than
> "${v}set" .
No. Do you understand what does "${v+set}" mean?
Please reopen this bug.
I want use this trick to avoid additional first blank line
in the following script with ksh:
https://github.com/fumiyas/fumiyas.gith
Package: ksh
Version: 93u+20120801-2
Severity: important
$ for s in '' ba da k mk z; do
sh=${s}sh
echo -n $sh:
seq 4 |${s}sh -c 'unset v; while read n; do [ -n "${v+set}" ] && echo -n "$v
"; v="$n"; done; echo "$v"'
done
sh:1 2 3 4
bash:1 2 3 4
dash:1 2 3 4
ksh:4
mksh:1 2 3 4
zsh:1 2 3 4
`
4 matches
Mail list logo