In ksh93, if you do  "getopts --man"
you will see this synopsis:
   getopts [ options ] opstring name [args...]

As described in the manpage text:

   Each time it is invoked, the getopts utility places the value of the next 
option
   in the shell variable specified by the name operand [...]

Thus the 'name' variable is a call-by-name argument.

I use call-by-name all the time in my shell functions, especially with
compound variables.

Regards,
  Mario


I. Szczesniak wrote:

> On 5/15/06, Mario DeFazio <Mario.DeFazio at morganstanley.com> wrote:
> 
>> Personally I would like to see an expansion of the use of call-by-name
>> argument passing.
> 
> 
> Could you provide any examples how this should work in a shell?
> 
> Irek
> _______________________________________________
> ksh93-integration-discuss mailing list
> ksh93-integration-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss
> 

Reply via email to