SUMMARY:Wrapper in Different Shells

From: Lau, Victoria H (vlau@msmail2.hac.com)
Date: Sun Mar 30 1997 - 19:56:56 CST


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



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:49 CDT