Closed yoavnir closed 1 year ago
I would bet that either tar
was not accessible, or the cd
happened in a different context, so tar
ran in the wrong directory and didn't do anything.
Simpler example. Input file "bat":
cd utils
ls
The following two commands behave very differently:
specs -i bat | $SHELL
specs -i bat -X
The reason is that the SHELL treats everything as a single script, while the -X
(wrongly!) runs the commands one by one and so the ls
command runs in the same directory as specs
, not in the utils directory.
Commands are now collected into an std::ostringstream
, and in the end, it is executed as one popen.
Will probably need better debugging in
-v
mode for-X