On Thu, 20 Oct 2005 10:47 pm, Emanuel Strobl wrote:
> #!/bin/sh
> list="one two three four"
>
> for item in $list; do
>   ${item}_present=yes

  eval ${item}_present=yes

> done

echo $one_present
echo $two_present
echo $three_present
echo $four_present

==>

yes
yes
yes
yes


Malcolm Kay
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to