9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: roger peppe <rogpeppe@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] strange problem
Date: Mon, 19 Jul 2010 13:14:59 +0100	[thread overview]
Message-ID: <AANLkTil8KDTcIP8GZfnKJgSZNwtNaKrZtzwvuF6R9ePh@mail.gmail.com> (raw)
In-Reply-To: <AANLkTilLsmhWBa7QLMi8gNZCESohINbNGUjIWYTmgyIs@mail.gmail.com>

that's because the cd function calls awd which prints some terminal
control codes to change the window's idea of the current
working directory. IMHO it should write to stderr,
but it doesn't.

 {for(i in 0.*) @{builtin cd $i; echo $i; grep total otdit| grep -v
number}} >data

should work.


On 19 July 2010 12:40, Rudolf Sykora <rudolf.sykora@gmail.com> wrote:
> Hello,
>
> when I run
> % {for(i in 0.*) @{cd $i; echo $i; grep total otdit| grep -v number}}
> 0.0
> total        :   1.6292960E-01
> 0.1
> total        :   1.6304534E-01
> 0.2
> total        :   1.6334587E-01
> 0.3
> total        :   1.6371879E-01
> 0.4
> total        :   1.6402583E-01
> 0.5
> total        :   1.6414479E-01
>
> which is what I want. But adding >data
>
> % awd
> % {for(i in 0.*) @{cd $i; echo $i; grep total otdit| grep -v number}} >data
> % cat data
>  ];/home/sykora/CALC/systems/fe_gaas_ag_001/17As_cp15/onek/rotxy/0.0/-xeon4 0.0
> total        :   1.6292960E-01
>  ];/home/sykora/CALC/systems/fe_gaas_ag_001/17As_cp15/onek/rotxy/0.1/-xeon4 0.1
> total        :   1.6304534E-01
>  ];/home/sykora/CALC/systems/fe_gaas_ag_001/17As_cp15/onek/rotxy/0.2/-xeon4 0.2
> total        :   1.6334587E-01
>  ];/home/sykora/CALC/systems/fe_gaas_ag_001/17As_cp15/onek/rotxy/0.3/-xeon4 0.3
> total        :   1.6371879E-01
>  ];/home/sykora/CALC/systems/fe_gaas_ag_001/17As_cp15/onek/rotxy/0.4/-xeon4 0.4
> total        :   1.6402583E-01
> 0.5
> total        :   1.6414479E-01
> %
>
> I don't understand...
> This is using p9p.
>
> Thanks for explanation!
> Ruda
>
>



  reply	other threads:[~2010-07-19 12:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19 11:40 Rudolf Sykora
2010-07-19 12:14 ` roger peppe [this message]
2010-07-19 12:24   ` Rudolf Sykora
2010-07-19 12:50   ` erik quanstrom

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=AANLkTil8KDTcIP8GZfnKJgSZNwtNaKrZtzwvuF6R9ePh@mail.gmail.com \
    --to=rogpeppe@gmail.com \
    --cc=9fans@9fans.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).