From: Martin Neubauer <m.ne@gmx.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Environment variable
Date: Wed, 9 Aug 2006 14:26:20 +0200 [thread overview]
Message-ID: <20060809122620.GF5077@shodan.homeunix.net> (raw)
In-Reply-To: <96B9C0FD-D1B1-4374-B247-1DCE7109C75C@ar.aichi-u.ac.jp>
* arisawa@ar.aichi-u.ac.jp (arisawa@ar.aichi-u.ac.jp) wrote:
>
> On 2006/08/09, at 20:39, Martin Neubauer wrote:
> >Well, now I have tried. It doesn't do the trick.
> >b=`{cat /env/a}^''
> >gives a warning if a is an empty string but works otherwise.
> >b=$`{basename /env/a}
> >is the cleanest solution, I think.
>
> The solution is same as
> b=$a
> this works if a is already a shell variable.
>
> Try
> c='' # null string
> a=()
> b=()
> cp /env/c /env/a
> then exec
> b=$`{basename /env/a}
I see what you are trying to accomplish. Probably
b=$"`{cat /env/a}
will do.
next prev parent reply other threads:[~2006-08-09 12:26 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-04 9:37 [9fans] vmware? Anssi Porttikivi
2006-08-04 9:47 ` Lluís Batlle i Rossell
2006-08-04 15:15 ` Richard Bilson
2006-08-04 15:44 ` erik quanstrom
2006-08-07 22:14 ` Richard Bilson
2006-08-07 23:50 ` Federico Benavento
2006-08-04 19:03 ` Gorka guardiola
2006-08-09 10:00 ` [9fans] Environment variable arisawa
2006-08-09 11:03 ` Martin Neubauer
2006-08-09 11:16 ` arisawa
2006-08-09 11:27 ` Martin Neubauer
2006-08-09 11:36 ` arisawa
2006-08-09 11:39 ` Martin Neubauer
2006-08-09 12:04 ` arisawa
2006-08-09 12:26 ` Martin Neubauer [this message]
2006-08-09 12:39 ` Martin Neubauer
2006-08-09 12:58 ` arisawa
2006-08-09 13:22 ` arisawa
2006-08-09 13:30 ` Martin Neubauer
2006-08-10 2:15 ` erik quanstrom
2006-08-09 12:03 ` [9fans] editor, man/less, dns setup, screen setup bituman
2006-08-09 12:08 ` Martin Neubauer
2006-08-09 12:08 ` Robert Raschke
2006-08-19 0:45 ` Rodolfo (kix)
2006-08-10 2:09 ` [9fans] Environment variable 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=20060809122620.GF5077@shodan.homeunix.net \
--to=m.ne@gmx.net \
--cc=9fans@cse.psu.edu \
/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).