On Wed, Mar 08, 2000 at 11:09:07AM +0100, Akim Demaille wrote:
: | eval set $list
: | for elt in "$@"; do
: | echo $elt
: | done
: |
: | So there. Now you won't get any more suggestions from me :)
:
: I agree, this is perfect.
Actually, I was informed by John W. Eaton through private email that
the 'in "$@"' part is the default and can therefore be dropped. My
opinion on this (which is influenced by my personal sh-scripting
conventions) is that "for elt; do" is a bit less readable than the
full thing.
: If we expect a good shell, then
: eval set -- $list
: is fine.
I think the dummy-approach is safest. I didn't look into which context
this was to be used in, but I'd probably name it _ac_dummy or something
like that...
Lars J