Cameron Simpson wrote:
>
>One thing I have done in my own shell setup is alias (well, shell
>function, but the idea's the same) rm, cp, chmod, chown, chgrp and a
>couple of others to an equivalent of
>
>       ( set -x; rm ${1+"$@"}; )
>
>i.e. I get to see the results of my shell expansion for these important
>operations. Occasionally it alerts me to some stupid error in time to
>hit interrupt, and anyway leaves some info around for recovery if it's
>too fast.

Ok, y'got me ... what is the thingy in the brackets doing?  set -x
shows me the expansion, but I don't understand what the rest of it is
doing.  In a test script, that structure returned the same output as
$@ by itself (just the positional parameters).  Enlighten me?



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to