Open aspieln3r opened 2 years ago
cat /etc/resolv.conf | more
freezes shell completely. ctrl +z or c doesnt work
Hey @aspieln3r -- thanks for reporting! Can you try upgrading to 0.10.1? I'm also on arch and can't reproduce these hangs
I'm already using latest on community. Will update once 0.10.1 hits repo
hi @aspieln3r! I also can't reproduce this.
Could you please run bash
then run xonsh --no-rc
and test the command.
If it works test your RC-file line by line to catch the error.
@anki-code I tried it and everything works well if I disable xontrib load coreutils
. That also explains why I got issue with only cat and echo. Issue is present in 0.10.1 too
@aspieln3r why you need coreutils xontrib on Arch? This xontrib mostly for Windows users.
From https://xon.sh/xontribs.html#coreutils
In many cases, these may have a lower performance overhead than the posix command line utility with the same name. This is because these tools avoid the need for a full subprocess call. Additionally, these tools are cross-platform.
So I thought it wouldn't hurt using that.
I think this affects all aliases for this matter.
which ls | grep ls
also hangs.
β― xonsh --no-rc
Welcome to the xonsh shell 0.12.4
~ Tab completion in Alderaan places ~
# ...
joerg@turingmachine ~ master $ def command(args, stdin, stdout):
.............................. print("foo", file=stdout)
..............................
joerg@turingmachine ~ master $ aliases["command"] = command
joerg@turingmachine ~master $ del command
joerg@turingmachine ~master $ command | grep foo # this will hang until one presses `ctrl-c`
It seems that even pipeliner hangs for me:
turingmachine in dotfiles on ξ master via π v3.9.12 via βοΈ impure (nix-shell)
β― xontrib load pipeliner
turingmachine in dotfiles on ξ master via π v3.9.12 via βοΈ impure (nix-shell)
β― ls -1 / | pl "line + ' is here'" | head -n 3
@Mic92 Could you please try setting $THREAD_SUBPROCS=True
and then running those commands?
Sorry. Stopped using xonsh.
xonfig
Expected Behavior
piping just works like in other shells
Current Behavior
pipes work for some commands but hangs shell for others. ctrl z makes the job background and returns to zonsh. jobs return:
[1]+ running: echo hai | grep hai (149404)
fg doesnt do anything if grep but opens an empty window if it was a command piped to less and pressing q quits like in normal less windowTraceback (if applicable)
Steps to Reproduce
following commands doesnt work
cat /etc/resolv.conf | less
echo hai | grep hai
following works
ls | grep filename
more textfile | grep string
I'm using arch linuxFor community
β¬οΈ Please click the π reaction instead of leaving a
+1
or π comment