[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
commands between { }
|
From: |
Jirka Kosina |
|
Subject: |
commands between { } |
|
Date: |
Fri, 3 May 2002 17:48:17 +0200 |
Hello,
When I run for example this:
P=0 ; { P=1; echo $P; } | { cat -; echo $P; }
I get
1
0
Though I would accept
1
1
as commands between { } are executed in the same shell, which made P=0.
What have I overlooked? Or is this a bug?
Thanks a lot in advance
--
JiKos.
- commands between { },
Jirka Kosina <=