Steffen Nurpmeso wrote in <20230405193451.u9bfz%[email protected]>: |Harald van Dijk wrote in | <[email protected]>: ||On 05/04/2023 17:44, Oğuz wrote: ||> 5 Nisan 2023 Çarşamba tarihinde Harald van Dijk <[email protected] ||> <mailto:[email protected]>> 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. | |I think i have open(ed) a bug tracker item on that in the past. |Ah yes, their bugzilla says | | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251770
That is the above is about sequential workings of assignments/etc on a line, nothing else (i have not really tracked this thread as it is much too specific on sh internals). --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)
