Sample Header Ad - 728x90

xargs nano leads to Received SIGHUP or SIGTERM while xargs less is OK

2 votes
0 answers
359 views
Scenario:
$ cat t0.txt
t1.txt

$ cat t1.txt
xxx

$ sed -n 1p t0.txt | xargs less
# OK

$ sed -n 1p t0.txt | xargs nano
Received SIGHUP or SIGTERM

dvl-linux64 $ nano --version
 GNU nano, version 2.5.3
How to open file in nano? If not xargs, then what? UPD. On Cywgin:
$ sed -n 1p t0.txt | xargs less
# OK

$ sed -n 1p t0.txt | xargs nano
Too many errors from stdin

$ sed -n 1p t0.txt | nano
Too many errors from stdin

Buffer written to nano.save

$ nano --version
 GNU nano, version 4.9
Asked by pmor (665 rep)
Feb 16, 2022, 02:17 PM
Last activity: Feb 18, 2022, 01:41 PM