Не работает функционал включения torsocks в текущем шелле (в данном случае zsh): =8<====================================================================== evg@thinkpad ~ $torsocks show LD_PRELOAD="" evg@thinkpad ~ $torsocks on Tor mode activated. Every command will be torified for this shell. evg@thinkpad ~ $torsocks show LD_PRELOAD="" evg@thinkpad ~ $env|grep LD_PRE [1] 15653 done env | 15654 exit 1 grep LD_PRE =8<====================================================================== при этом вызов отдельных команд через torsocks и torsocks --shell - работают.
torsocks on и не должен так работать. Нужно делать source для скрипта torsocks. Из мана on | off - This option adds or removes torsocks(8) from the LD_PRELOAD environment variable for the current shell. If you want to use this option, you HAVE to source torsocks from your shell. Add the torsocks library to LD_PRELOAD $ . torsocks on Remove the torsocks library from LD_PRELOAD $ . torsocks off
Спасибо. Читал ман, но видимо неправильно понял.