Printing "-n" with the echo command
<[email protected]> Wed, 21 Jan 2004 10:39:29 +0100
| Newsgroups | gmane.comp.gnu.sh-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello, We use the command "echo" in program building scripts. When echoing build parameters as "-n" alone, the characters "-n" are never echoed and by the way are lost. Ex. > TOTO="-n" > echo "$TOTO" > echo "-n" > echo "-n -a" -n -a I understand "-n" is an option of the "echo" command, but could it be possible to print it as regular text when placed between quotes ? PS. We use the shell command "echo" of the RedHat V7.3 distribution Thank you, Pascal Maurel