2017-07-06 The commands in pipelines have to be executed in subshells, apart from the last command, which technically can be executed in the current shell. Most shells do it this way, the bash does not. It runs the last command in a subshell as well. I searched for a shortcut where there is none. Either one goes non-portable or one has to make use of temporary files or such. The discussion exploded quickly after a zealot appeared, who told how stuff has to be done, without providing a rationale grounding for his statements. I took this from the topic: 1) Several (imperfect) ways to solve my problem 2) The open question why the bash behaves differently (without technical necessity and with greater complexity) 3) More alertness for such explosive topics and the goal to stay calm even when others write in a destructive manner [0] [0] https://debianforum.de/forum/viewtopic.php?f=34&t=165857 http://marmaro.de/lue/ markus schnalke