Echo

Guy Harris guy at auspex.UUCP
Tue Dec 13 04:25:34 AEST 1988


>On scripts where you need System V escape semantics (like scripts that
>send control sequences to the terminal or windowing system),

Note that unless the control sequence is very specific to the terminal,
such that it doesn't appear in the "terminfo" database, if you have
"tput" you're better off using it to send control sequences to the
terminal, since it uses "terminfo" and thus can be terminal-independent.
(There may already exists versions of "tput"-like commands for
"termcap".)

>If the script is only going to be run on Suns, just use /usr/5bin/echo
>directly, and don't futz around with the PATH.  If your script(s) need
>to be run on multiple systems, you could set an environment variable,
>like I do (in /bin/sh notation):

If your script depends on System V semantics, as opposed to (V7/)BSD
semantics, for other commands, futzing around with the PATH may well be
the best approach.



More information about the Comp.unix.wizards mailing list