SUMMARY:Wrapper in Different Shells

Lau, Victoria H (vlau@msmail2.hac.com)
Sun, 30 Mar 1997 17:56:56 -0800

I cannot express my appreciation enough for the help I get from this
group, especially to the following Sun managers, who came to my
rescue:

- Casper Dik
- Robert Fulwiler
- Vasu Vuppala

Original question:
=================
I have a line in my csh wrapper to start my program:
exec /usr/mri/master/bin/`basename $0` $*:q

How do I convert the above line to Korn shell and Bourne shell to pass
all the parameters to the command? One of my actual commands to call
xsh is:

xsh -t mri02

Solutions:
=========

Both of the following lines work (in ksh and sh):

exec /usr/mri/master/bin/`basename $0` "$@"
exec /usr/mri/master/bin/`basename $0` "${@:-}"

Thank you again.

Vicky Lau
vlau@msmail2.hac.com