GNU bug report logs -
#59469
29.0.50; Eshell "for" loop: Calling a non-lisp command (example: /usr/bin/tail) sets the variable exported in the {} block of "for var in list {}" to nil
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
A simpler duplication shows the issue is below.
It appears the issue is is not related to the "for loop" - it can be
duplicated just writing code inside the eshell { .. } block.
To duplicate, please create a file ccc.el.gz - something the gzip does not
fail on.
Then, On the eshell prompt, enter the following code:
$ export aaa="This is contents of aaa"
{
# create a variable in this block
export bbb=$aaa;
echo "Before gzip: aaa=$aaa"
echo "Before gzip: bbb=$bbb";
gzip --decompress ccc.el.gz;
echo "After gzip: aaa=$aaa"
echo "After gzip: bbb=$bbb";
}
Before gzip: aaa=This is contents of aaa
Before gzip: bbb=This is contents of aaa
After gzip: aaa=This is contents of aaa
After gzip: bbb=nil
$
Same bug: After the call to non-elisp program, /usr/bin/gzip, a previously
exported variable bbb (exported inside the block) is nullified.
Thanks
[Message part 2 (text/html, inline)]
This bug report was last modified 2 years and 197 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.