Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2005 23:45:28 -0800
From:      Matt Navarre <mnavarre@cox.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: script "echo on" like MS-DOS?
Message-ID:  <200502222345.29660.mnavarre@cox.net>
In-Reply-To: <421C3181.9020004@kelleycows.com>
References:  <421C3181.9020004@kelleycows.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 22 February 2005 11:32 pm, 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?

on the first line have #! /bin/sh -x

or type 

/bin/sh -x <script>

-x also does the same thing for csh scripts.

This might not be what you want, but it's the closest thing I can think of to 
"echo on"

>
> 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.
>
> Thanks,
>
> Christopher Kelley
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502222345.29660.mnavarre>