Re: Error: *: Parameter not set

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 06/30/05

  • Next message: Bill Seivert: "Re: Variable value in while loop"
    Date: Thu, 30 Jun 2005 00:01:16 -0400
    
    

    In article <1120043424.293768.41030@g47g2000cwa.googlegroups.com>,
     "DozyRosy" <tony.skelding@uk.abnamro.com> wrote:

    > I have a shell script which acts as a wrapper to another script and I
    > want to propagate all the passed parameters through to the inner script
    > (even if there are none). But if I use $* or $@ and there are no
    > parameters passed in the I get an error and the script terminates. How
    > do I avoid this?

    Can you use ksh or bash instead of sh? Some versions of sh have this
    problem, but I think it's been fixed in most modern shells.

    -- 
    Barry Margolin, barmar@alum.mit.edu
    Arlington, MA
    *** PLEASE post questions in newsgroups, not directly to me ***
    

  • Next message: Bill Seivert: "Re: Variable value in while loop"