David Korn wrote:
> Subject: Re: [ast-users] Number of elements for declaring an indexed array 
> via  'typeset pbargs[]' vs. 'typeset -a pbargs' ?
> --------
> > Where is the difference between the following two array declarations:
> > -- snip --
> > ksh93 -c 'typeset pbargs[] ; print ${#pbar...@]}'
> > 1
> > $ ksh93 -c 'typeset -a pbargs ; print
> > ${#pbar...@]}'
> >
> > 0
> > -- snip --
> >
> > Somehow it looks for the first form ('typeset pbargs[]') some kind of
> > "hidden" empty array element gets created - is this a bug or a feature ?
> 
> I should probably treat foo[] as a syntax error.

Agreed...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to