On Saturday 07 December 2002 8:44 pm, Andy Sy wrote:
> 1) What are the practical difference between
> "$@" and "$*"? Hopefully an example can be given.

From the Advanced Bash-Scripting Guide...
http://personal.riverusers.com/~thegrendel/abs-guide-1.1.tar.gz

$*

All of the positional parameters, seen as a single word

$@

Same as $*, but each parameter is a quoted string, that is, the parameters are 
passed on intact, without interpretation or expansion. This means, among 
other things, that each parameter in the argument list is seen as a separate 
word.

> 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

hmmm...

stty -echo
bar.exe
stty echo

?



_
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