Cannot Launch Interactive Program While Piping to Script in Python
问题 I have a python script that needs to call the defined $EDITOR or $VISUAL . When the Python script is called alone, I am able to launch the $EDITOR without a hitch, but the moment I pipe something to the Python script, the $EDITOR is unable to launch. Right now, I am using nano which shows Received SIGHUP or SIGTERM every time. It appears to be the same issue described here. sinister:Programming [1313]$ echo "import os;os.system('nano')" > "sample.py" sinister:Programming [1314]$ python sample