I'm rather new to shell programming...
Is there a way to pass parameters to functions (by value or reference) ?
All I've found are simple functions without parameters, like fnc()
Sure, just treat them like scripts. Example;
... or even
Line=`Display "this"` # using backticks
I have a function defined in in .profile which accepts three
I am wondering, whether the function can be invkoded as
"myfun -c var1 -d var2 -e var3"
The reason, I would prefer this method, because I don't have to know
the order of the parameters and optionally I can ignore one or more of
the parameter and set the default value, inside the program if needed.
note: I know, it can be invoked as "myfun var1 var2 var3"
I am using ksh under AIX 5.2