From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Rudolf Sykora Date: Thu, 26 Apr 2018 17:10:19 +0200 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset="UTF-8" Subject: Re: [9fans] simple rc problem in p9p (on OpenBSD) Topicbox-Message-UUID: d4afd302-ead9-11e9-9d60-3106f5b1d025 On 26 April 2018 at 17:02, Teodoro Santoni wrote: > ; w='A > B > C' > ; we=`{echo $w} > ; for(i in $we) { echo 'arg '$i; } > arg A > arg B > arg C > ; for(i in $w) { echo 'arg'$i; } > argA > B > C > ; exit > > When enclosed in single quotes, the variable is, regardless of spaces > or whatnot, a single element. For a list you have to expand it in some > way, inside a command expansion or declaring a list. > Thanks, this is it. Ruda