On Tue, Feb 22, 2005 at 11:32:17PM -0800, Christopher Kelley wrote:
> Is there a simple way to cause a shell script to echo to the terminal 
> similar to the old MS-DOS "echo on" command?
> 
> I've tried to read the fine man pages, and even tried looking at for 
> instance the make scripts that seem to echo their commands to the 
> terminal, but I couldn't even being to follow them.

The answer to that depends entirely on which shell is being used, as it
is the shell itself that will have to do the echoing.

One solution that seems to work for all of /bin/sh, bash, and zsh is to
invoke the shell with the -x flag. Then the shell will echo each
command before executing it.

For other shells there may, or may not be an equivalent.


-- 
<Insert your favourite quote here.>
Erik Trulsson
[EMAIL PROTECTED]
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to