bug-sh-utils
[Top][All Lists]
Advanced

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

Printing "-n" with the echo command


From: pascal.maurel
Subject: Printing "-n" with the echo command
Date: Wed, 21 Jan 2004 10:39:29 +0100

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]