4 ms·
Pretty awesome, but broke on the first command I tried (granted, it is bash specific IIRC) echo $(( 1 + 2 ))
by cheeze 10y ago
Pretty awesome, but broke on the first command I tried (granted, it is bash specific IIRC)
echo $(( 1 + 2 ))
- cat199 10y agonot at all a bashism $ uname -sr OpenBSD 6.0 $ ps T PID TT STAT TIME COMMAND 85828 pc Ssp 0:00.01 -ksh (ksh) 34802 pc R+p 0:00.00 ps -T $ echo $(( 1 + 2 )) 3
- mcnaughtonrules 10y agoResident bsd hero
- contras1970 10y ago% /bin/sh $ echo $((1 + 2)) 3 $ uname -srm DragonFly 4.7-DEVELOPMENT x86_64
- phaemon 10y agoIt's actually POSIX standard. See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04 http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3...
- deleted 10y ago[deleted]
- kps 10y agoHowever, the site does interpret input as bash and not a Posix-compliant shell.