echo command always prints its arguments

Andrew Koenig ark at alice.UUCP
Tue Apr 2 15:36:50 AEST 1985


> On every UNIX system I have ever used, there is no way to prevent
> the echo command from printing its arguments.  I would like to
> propose a "-q" option to echo which tells it to be quiet and go about
> its work without printing its arguments.
> -- 
>
>			Scott Orshan
> 			Bell Communications Research
>			201-981-3064
>			{ihnp4,allegra,bellcore,pyuxww}!u1100a!sdo
>

This option is unnecessary because you can obtain the
equivalent effect by redirecting the standard output:

	echo $args >/dev/null

Doing it this way has the advantage of greater portability, too.



More information about the Comp.unix mailing list