[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible bug in echo
From: |
Alexander Bedard |
Subject: |
Possible bug in echo |
Date: |
Mon, 28 Jul 2003 05:39:51 -0400 |
This appears to be a bug in echo:
echo `echo` should return 2 line feeds, but it only gives one. I noticed
this in a problem I had with a form sensitive script that had to check
the output of a command. Logicly, echo (without -n flag) returns a \n
line feed after echoing something, so technically even embedded echoes
should do the same.
A similar problem occurs with: echo -n `echo`, which doesn't return in
trailing line feeds at all.
--
Alexander Bedard
address@hidden
signature.asc
Description: This is a digitally signed message part
- Possible bug in echo,
Alexander Bedard <=