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
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:~$
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
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
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
5 matches
Mail list logo