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

Re: dysfunctional echo escape



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 +0000, Pigeon wrote:
> 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 debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

Attachment: pgpBjcc6UB0UB.pgp
Description: PGP signature


Reply to: