[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pipe with list seems to clobber variables
From: |
Greg Bell |
Subject: |
pipe with list seems to clobber variables |
Date: |
Tue, 19 Dec 2000 23:10:27 -0800 (PST) |
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: cygwin
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc'
-DSHELL -DHAVE_CONFIG_H -I. -I../src -I../src/include -I.
./src/lib -I/usr/include -g -O2
uname output: CYGWIN_NT-5.0 RUSSELL 1.1.6(0.30/3/2) 2000-11-21 21:00 i686
unknown
Machine Type: i686-pc-cygwin
Bash Version: 2.04
Patch Level: 0
Release Status: release
Description:
if I have a list of commands, and there's a pipe anywhere in there,
any variables set in the list seem to get erased.
Repeat-By:
# this works
{ bs=1; echo "hi"; }
echo "bs is $bs"
# this doesn't work. bs2 will always be blank
{ bs2=1; echo "hi"; } | tee nothing.log
echo "bs2 is $bs2"
--
Greg Bell 858-860-6519
- pipe with list seems to clobber variables,
Greg Bell <=