On Sat, Dec 07, 2002 at 08:44:24PM +0800, Andy Sy wrote:
> 2) How do you prevent echoing of an executed
> bash command within a script. I'm looking
> for something analogous to:
> 
> @d:\foo\bar.exe
> 
> in a DOS batch file where the command
> d:\foo\bar.exe is not echoed to the
> screen.

If bash is set to display the commands being executed by "set -x", you
can unset it by "set +x". :-)

e.g.

set -x
echo you will see this
(
  set +x
  echo you won\'t see this
)
echo again you will see this

HTH
-- 
$_=q:; # SHERWIN #
70;72;69;6e;74;20;
27;4a;75;73;74;20;
61;6e;6f;74;68;65;
72;20;50;65;72;6c;
20;6e;6f;76;69;63;
65;27;:;;s=~?(..);
?=pack q$C$,hex$1;
;;;=egg;;;;eval;;;
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to