>>>>> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes:

Lars> You can 'shift' out the dummy at once, though, and leave out the
Lars> case for it (I assume you'll have a switch/case inside the for
Lars> loop), but then you must use the ${1+"$@"} approach.

That's what I meant, dummy could be anything but a string starting
with a dash:

eval set dummy $list
shift  # pop dummy now
for elt
do
  echo $elt
done

Akim

Reply via email to