bash_profile defined function | getting redundant calls
Hello Everyone,
I would appreciate some help on the following.
I defined a small sub in .bash_profile, but when the call is made, its getting redundant, if I need to reuse the same function.
For e.g
[Narender@MacBook ~]$ myfunc -u one -m one
User: one
Host: one
[Narender@MacBook ~]$ myfunc -u one -m two
<No Output>
but if I do this,
[Narender@MacBook ~]$ myfunc
<no Output>
and then again,
[Narender@MacBook ~]$ myfunc -u one -m two
User: one
Host: two
its getting right, any thought, why?
Note: I'm using getopts in myfunc to parse options
|