I wrote:
larry$ bash -c 'set -x; list="a|b|c"; t=a; eval "case $t in ( $list ) echo one;; b ) echo two;; esac'
Not sure if anyone's interested in this technique, but if you do try the above, it won't work -- some email client/server and/or copy-and-paste messed it up. It should be: |bash -c 'set -x; list="a|b|c"; t=a; eval "case $t in ( $list ) echo one;; b ) echo two;; esac"' |or, shorter and more verbose: | bash -xvc 'list="a|b|c"; t=a; eval "case $t in ( $list ) echo one;; b ) echo two;; esac"' | Thanks, - Larry ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
