A quick check with a ksh, bash, zsh, on cygwin shows equivalent behaviour; it works *without* the leading 0's.
________________________________ > From: [email protected] > Date: Thu, 5 Jul 2012 21:55:08 +0800 > Subject: Re: Getting the character from its ordinal number (was: Re: > [ast-users] How do I have : in an egrep [...] range?) > To: [email protected] > CC: [email protected] > > On Thu, Jul 5, 2012 at 8:48 PM, Terrence J. Doyle > <[email protected]<mailto:[email protected]>> > wrote: > > But, another reason for bringing this up is that octal numbers used to > work for > this purpose in $''. Now (ksh Version AJM 93u+ 2012-06-12), it appears that > 3-digit octal numbers do not work... > > $ printf "%o %o\n" $(('_')) $((':')) > 137 72 > $ printf $'\0137 \072' | cat -v > > Shouldn't it be written as $'\137' ? > > ^K7 : > $ print $'\0100' # Should be @ > 0 > $ print $'\077' # OK > ? > > Is this a bug? > > Terrence Doyle > _______________________________________________ > ast-users mailing list > [email protected]<mailto:[email protected]> > https://mailman.research.att.com/mailman/listinfo/ast-users > _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
