- 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