On 7/23/14, 4:49 PM, Dan Douglas wrote: > I don't believe there are any cases in which ksh interprets a leading > zero, at least not current versions. If you want octal you must use > either 8#num or typeset -ibase. Same applies to both zsh and mksh > AFAICT.
$ ksh93 -c 'echo $(( 010 ))' 8 Posix requires it. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/