Re: $(()) pre/postfix bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steffen Nurpmeso wrote in
 <20220701231439.egWzS%steffen@xxxxxxxxxx>:
 ..
 |While doing so i encountered diverging behaviour in between
 |shells, and a bug in dash (and a memory failure in NetBSD 9 ksh).

Nonsense.  dash simply does not support pre/postfix operators.
Sorry for the noise.

  ...
 |NetBSD n-0900 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC \
 |2020  mkrepro@xxxxxxxxxxxxxxxxxx:/usr/src/sys/arch/amd64/compile/GENERIC \
 |amd64
 |
 |#?0|n-0900:steffen$ ksh -c '(i=10; echo $((++-+++i)))'
 |Memory fault
 ...

Ok, maybe a bug report over there.

--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)



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux