Open ShellCode33 opened 5 years ago
I should probably create a new issue for this, but since it's still cat
related...
I found another bug : reading files from /proc
doesn't show anything.
$ cat /proc/cpuinfo
$ /usr/bin/cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
I have no clue why this is happening... Maybe something to do with the fact that /proc
files are in RAM ?
Hi @ShellCode33, thanks for reporting! I can confirm both the issues. Could you please file another report for the second bug? It seems that cat
is currently unable to fetch contents of zero-sized pseudo-files. These two are unrelated.
Done xonsh/xonsh#3182 !
Hi ! I'm new to xonsh and I find it truly amazing ! So first of all, thanks for doing it :)
I've enabed the coreutils plugin to speed things up a little, but I've noticed that when you redirect the stdout of a program into the stdin of a coreutils' function, it doesn't work at all and the shell keeps printing
xonsh: readline() takes no keyword arguments
until you ctrl+c. Command to reproduce :echo test | cat
Of course, the following works great :echo test | /usr/bin/cat
I'm not familiar at all with xonsh code, but wouldn't it be possible to use the binary instead of the builtin when a pipe is used ? Or to consider stdin in coreutils ?
Here is my config :
For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 comment