All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Re: Test, benchmark
Date: Sat, 19 Aug 2006 14:48:02 +0200	[thread overview]
Message-ID: <17639.2178.158208.80020@domain.hid> (raw)
In-Reply-To: <44E6BF53.4000809@domain.hid>

Jan Kiszka wrote:
 > list="a,b,c,d"
 > for option in `echo $list|sed -e's/,/\n/g'`; do
 > 	case $option in
 > 	a)
 > 		do_this
 > 		;;
 > 	b)
 > 		do_that
 > 		;;
 > 	...
 > 	esac
 > done


What about:

save_ifs="$IFS"
IFS=,
for option in $list; do
     case $option in
...
     esac
done
IFS="$save_ifs"

-- 


					    Gilles Chanteperdrix.


  reply	other threads:[~2006-08-19 12:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10  1:18 [Xenomai-help] expected output and runtime of switchtest ? Jim Cromie
2006-08-10 11:28 ` Jan Kiszka
2006-08-10 20:38   ` [Xenomai-core] " Jim Cromie
2006-08-11 16:25     ` [Xenomai-core] Test, benchmark, demo frameworks (was: expected output and runtime of switchtest ?) Jan Kiszka
2006-08-11 22:45       ` [Xenomai-core] Re: Test, benchmark, demo frameworks Jim Cromie
2006-08-16  7:12         ` Jan Kiszka
2006-08-18 16:54       ` [Xenomai-core] Re: Test, benchmark Jim Cromie
2006-08-18 17:19         ` Gilles Chanteperdrix
2006-08-18 17:48           ` Gilles Chanteperdrix
2006-08-18 18:12           ` Jim Cromie
2006-08-18 18:23             ` Jan Kiszka
2006-08-18 19:10             ` Gilles Chanteperdrix
2006-08-18 21:28             ` Gilles Chanteperdrix
2006-08-18 18:02         ` Jan Kiszka
2006-08-18 18:28           ` Jim Cromie
2006-08-19  7:35             ` Jan Kiszka
2006-08-19 12:48               ` Gilles Chanteperdrix [this message]
2006-08-13 17:11     ` [Xenomai-core] expected output and runtime of switchtest ? Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17639.2178.158208.80020@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.