tg
c37c7aea61
document somewhat surprising behaviour
12:58⎜<gps23:#ksh> someone please tell me why: code=1; if [ "code" -eq 1 ] returns true 13:10⎜<mira|AO:#ksh> hm but I see the problem 13:10⎜<mira|AO:#ksh> code=1; x=code; [ "$x" -eq 1 ] 13:10⎜<mira|AO:#ksh> this is indeed unexpected 13:10⎜«pgas:#ksh» gps23: code=1+1;[ "code" -eq 2 ] && echo true #also works as of now, we consider 13:13⎜«pgas:#ksh» gps23: when you use -eq there is something like an implicit $(( )) around the ⎜ arguments 13:14⎜«pgas:#ksh» [ code -eq 1 ] is the same as [ $((code)) -eq 1 ] to be documented.
Description
MirBSD Korn Shell for Jehanne
Languages
C
57.6%
Shell
26%
Roff
13.3%
Perl
2.6%
Makefile
0.5%