[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unexported $vars seen thru () docs
From: |
Dan Jacobson |
Subject: |
unexported $vars seen thru () docs |
Date: |
Sat, 28 Jun 2003 07:35:09 +0800 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) |
man page:
(list) list is executed in a subshell.
ok, don't we have to export things to have them heard in a subshell?
$ m=p;(echo $m)
p
$ Expands to the process ID of the shell. In a () subshell, it
expands to the process ID of the current shell, not the sub-
shell.
OK, then also mention that other unexported $vars can be seen thru () unless
overwritten in the subshell
$ m=p;bash -c set|grep =p
$ m=p;(set)|grep =p
m=p
so it is a special subshell
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- unexported $vars seen thru () docs,
Dan Jacobson <=