From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Alexander Kapshuk Date: Thu, 26 Apr 2018 17:57:26 +0300 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: d4a4ba62-ead9-11e9-9d60-3106f5b1d025 On Thu, Apr 26, 2018 at 5:45 PM, Rudolf Sykora wrote: > Hello > > I, using OpenBSD's p9p, see this > > % w='A > B > C' > % echo $w > A > B > C > % for(i in $w) {echo $i; echo XXX} > A > B > C > XXX > > ie, w in for is taken as just one argument instead of > 3. What can I do with it? > > I haven't modified ifs (it should be \n space and tab). > (How can I check, say see the character codes?) > > Thanks for comments > Ruda > Here, $w's value is a string. % w='A B C' % echo $#w 1 And here, it's a list. % w=(A B C) % echo $#w 3 % for(i in $w) {echo $i; echo XXX} A XXX B XXX C XXX