On 05/04/2023 17:44, Oğuz wrote:
5 Nisan 2023 Çarşamba tarihinde Harald van Dijk <a...@gigawatt.nl
<mailto:a...@gigawatt.nl>> yazdı:
I am not sure which other ash based shells you were looking at,
/bin/sh on NetBSD and FreeBSD
Thanks. I indeed see the same results as you on a recent version of
FreeBSD sh (the one on the FreeBSD 13.1 installation media).
There is a legitimate benefit to this: swapping variables without an
additional helper variable actually works in that implementation.
a=1 b=2
a=$b b=$a
echo $b $a
As it turns out, the at the moment still rather incomplete mrsh
<https://mrsh.sh/> also behaves this way.
Cheers,
Harald van Dijk