bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Posix and command line parameters


From: Francis Montagnac
Subject: Re: Posix and command line parameters
Date: 25 Feb 2002 09:00:36 GMT

Hi.

In article <3932b777.0202242237.7e52f0b9@posting.google.com>,
 tingashilo@yahoo.com (T Shilo) writes:
...
>On machine2, running the same bash version, it shows:
>    >script param
>    I got 1 parameters
>    > script
>    I got 1 parameters.

I guess that you have the BASH_ENV variable set to some file name on
machine2, and that this file modifies the positional parameters.

To prevent that kind of side effects you should change the first line 
of your script to set the privileged mode of bash with:

#!/bin/bash -p

-- 
Francis.Montagnac@sophia.inria.fr, Tel: (33) 04 92 38 79 11, Bur: E106
INRIA Sophia, 2004, rte des Lucioles, B.P.93 - 06902 Sophia Antipolis Cedex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]