Save the environment .. ;-)

Aug 3, 2016
376
9
Netherlands
This one gave me headaches:

Code:
TEST >unset abc

TEST >echo dummy text | set abc=something

TEST >set abc
TCC: Not in environment "abc*"

Problem is the "|" makes the next command to start a new instance of tcc
Any set variable will be lost when this instance exits.

What would be a good way to "save" abc?
(beside writing "abc=something" to a file and reading it afterwards)
 
May 20, 2008
11,840
120
Syracuse, NY, USA
See "Pipes" ... "in-process pipes".

Code:
v:\> unset /q abc

v:\> echo dummy text |! set abc=something

v:\> set abc
something
 
  • Like
Reactions: MaartenG

Similar threads