Can positional parameters in korn be resetted?
What I mean is, if I have a script that takes 3 srguments:
$ myscript arg1 arg2 arg3
...script runs and so $1 is equal to arg1; and $2 is equal to arg2, etc...
When I ran it again WITHOUT provide any arguments:
$ myscript
...
It runs with the previous arguments in effect.
Is there a way to keep that from happening in Korn?
I know in bash, that does not happen.
What I mean is, if I have a script that takes 3 srguments:
$ myscript arg1 arg2 arg3
...script runs and so $1 is equal to arg1; and $2 is equal to arg2, etc...
When I ran it again WITHOUT provide any arguments:
$ myscript
...
It runs with the previous arguments in effect.
Is there a way to keep that from happening in Korn?
I know in bash, that does not happen.