Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-06-13 Thread Ethan A. Gardener
On Thu, Apr 26, 2018, at 8:01 PM, Costin Chirvasuta wrote: > I lot of the messages on this list end up being marked as spam. I > believe there was a previous discussion about this. I've had no trouble with this list on fastmail.fm , for what it's worth.

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
On Thu, 26 Apr 2018 at 21:41, Costin Chirvasuta wrote: > I lot of the messages on this list end up being marked as spam. I > believe there was a previous discussion about this. Well, I did check my spam folder. (Actually all folders...) It hasn't been delivered at all...

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Costin Chirvasuta
I lot of the messages on this list end up being marked as spam. I believe there was a previous discussion about this. On Thu, Apr 26, 2018 at 7:36 PM, Rudolf Sykora wrote: > On 26 April 2018 at 17:48, Benjamin Purcell wrote: >> Since no one had

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
On 26 April 2018 at 17:48, Benjamin Purcell wrote: > Since no one had any idea what you had in mind, here is stab in the > dark. Did you want > > % for(i in `{echo $w}) {echo $i; echo XXX} Yes. That was it. But basically this was already given in Teodoro Santoni's e-mail.

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Benjamin Purcell
Since no one had any idea what you had in mind, here is stab in the dark. Did you want % for(i in `{echo $w}) {echo $i; echo XXX} ? On Thu, Apr 26, 2018 at 11:29 AM, Alexander Kapshuk wrote: > On Thu, Apr 26, 2018 at 6:08 PM, Rudolf Sykora

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
On 26 April 2018 at 17:20, dexen deVries wrote: > use a list. lists are created either by the parentheses: > > % w = ( A B C ) > % # note no space before the backslash > % wMultiline = (\ > X\ > Y\ > Z\ > ) As I wrote in another answer, the content of w is as if

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Alexander Kapshuk
On Thu, Apr 26, 2018 at 6:08 PM, Rudolf Sykora wrote: > On 26 April 2018 at 16:54, Lucio De Re wrote: >> w=(A B C) >> >> ? > > 1) this is not an answer > 2) the use of it all was that I wanted to send to print > certain files, the list of which I

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread dexen deVries
use a list. lists are created either by the parentheses: % w = ( A B C ) % # note no space before the backslash % wMultiline = (\ X\ Y\ Z\ ) % echo $w $wMultiline A B C X Y Z % for(i in $w) {echo $i; echo XXX} A XXX B XXX C XXX or by globbing: % text_files = *.txt or by expanding a whitespaced

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
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

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
On 26 April 2018 at 16:54, Lucio De Re wrote: > w=(A B C) > > ? 1) this is not an answer 2) the use of it all was that I wanted to send to print certain files, the list of which I got from ls followed by manual deletion (in 9term) of some... Newline separation is thus

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Teodoro Santoni
Hi, 2018-04-26 16:45 GMT+02:00, Rudolf Sykora : > 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

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Alexander Kapshuk
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.

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Lucio De Re
w=(A B C) ? On 4/26/18, 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