Positional Parameters Resetting [message #330462] |
Mon, 30 June 2008 04:11 |
nmk_ora
Messages: 4 Registered: June 2008 Location: India
|
Junior Member |
|
|
Hi,
In below example,Shell1.sh require 2 parameters from outside.
Step1) . ./Shell1.sh 2 3
successfully executed, Then i executed(next step only) the same shell script again,this time no parameters passed.
Step 2) . ./Shell1.sh
This is also successfully executed,because it considered(previous values) 2 & 3 as the positional parameters as i had not reseted them.
Can any one provide the Unix command to reset the Positional parameters?
Thanks in advance
|
|
|
|