Re: dysfunctional echo escape

2002-11-30 Thread Pigeon
On Sat, Nov 30, 2002 at 12:15:58PM -0800, Bill Moseley wrote: > At 07:45 PM 11/30/02 +, Pigeon wrote: > >Hi, > > > >man bash (bash-2.01) tells me that echo -e \nnn where nnn is an > >octal number should output the character whose ASCII code is nnn. > > > >So, I should get: > >$ builtin echo -e

Re: dysfunctional echo escape

2002-11-30 Thread Stephen Gran
Pigeon writes: Hi, man bash (bash-2.01) tells me that echo -e \nnn where nnn is an octal number should output the character whose ASCII code is nnn. So, I should get: $ builtin echo -e \101 A $ I don't. I get: $ builtin echo -e \101 101 $ Why? Pigeon steve:~$ echo -e \101 101 steve:~$

Re: dysfunctional echo escape

2002-11-30 Thread sean finney
heya, it's because the \101 is being interpreted by the shell as 101 before being passed to echo. try it with '\101' or \\101 and you should get A. hth sean On Sat, Nov 30, 2002 at 07:45:05PM +, Pigeon wrote: > man bash (bash-2.01) tells me that echo -e \nnn where nnn is an > octa

Re: dysfunctional echo escape

2002-11-30 Thread Bill Moseley
At 07:45 PM 11/30/02 +, Pigeon wrote: >Hi, > >man bash (bash-2.01) tells me that echo -e \nnn where nnn is an >octal number should output the character whose ASCII code is nnn. > >So, I should get: >$ builtin echo -e \101 >A >$ > >I don't. I get: >$ builtin echo -e \101 >101 >$ > >Why? The she

dysfunctional echo escape

2002-11-30 Thread Pigeon
Hi, man bash (bash-2.01) tells me that echo -e \nnn where nnn is an octal number should output the character whose ASCII code is nnn. So, I should get: $ builtin echo -e \101 A $ I don't. I get: $ builtin echo -e \101 101 $ Why? Pigeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a s