Home » Infrastructure » Unix » Positional Parameters Resetting
Positional Parameters Resetting [message #330462] Mon, 30 June 2008 04:11 Go to next message
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


Re: Positional Parameters Resetting [message #330481 is a reply to message #330462] Mon, 30 June 2008 04:55 Go to previous message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
This is an Oracle forum not a Unix one.
Post your question in a more appropriate forum.

This topic is locked.
Regards
Michel
Previous Topic: Unix question
Next Topic: Coping alerrt log
Goto Forum:
  


Current Time: Mon Dec 02 18:37:58 CST 2024