Preserving NULL parameters between shell scripts

From: Andrew Gallagher <andrew.gallagher_at_kscl.com>
Date: Thu, 24 Apr 1997 10:57:32 +-100

Dec Unix Version 3.2d
Korn Shell

We are currently experiencing a problem when trying to pass null parameters between shell scripts.

The situation is that the first shell script is passed a set of parameters (the number of parameters is variable). This shell script then calls another shell script with the same parameter list. This is done using $*. Everything is ok as long as all the parameters have a value. e.g.

a.sh "1" "2" "3" - results in b.sh getting the parameter list 1 2 3

a.sh "1" "" "3" - results in b.sh getting the parameter list 1 3

We need a way of preserving the null parameter being passed into the second shell script. Any Ideas ?
Received on Thu Apr 24 1997 - 12:13:40 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT