[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dysfunctional echo escape



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:~$ echo -e '\101'
A You have to quote it to get it parsed right.
HTH,
Steve


Reply to: