You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's quite strange. Running "grunt watch | grep reload" works just fine - it's just adb logcat that seems to not be working (though both work the same in bash).
Anyway, thanks for your help! Not a big deal to work around.
Just encountered this bug myself. This reproduces the behaviour every time for me:
$ cat test.log
test
test
test
test
test
test
test
$ cat test.log | while read r; sleep 1; echo "$r"; end | cat -
# notice that nothing is printed until ^C or until cat finishes
^Ctest
test
test
test
test
test
$ sh -c 'cat test.log | while read -r r; do sleep 1; echo "$r"; done | cat -'
# notice that a line is printed every second
test
test
test
^C
$ fish --version
fish, version 2.1.1
Activity
ridiculousfish commentedon Feb 15, 2014
Does it do what you expect if you run it with
command grepinstead of grep?olegbl commentedon Feb 18, 2014
Thanks for the quick attention!
No, it does not. Behavior seems identical with "command grep". I have to kill it to see output.
ridiculousfish commentedon Feb 20, 2014
Do you have a grep function defined? I.e. does
functions grepproduce output?olegbl commentedon Feb 20, 2014
"function grep" leaves me sitting with a blank input - I can type stuff in, but nothing happens. Once I ctrl-c, all I typed in clears.
"which grep" returns /usr/bin/grep
"adb logcat | echo" has the same behavior
Thanks!
ridiculousfish commentedon Feb 20, 2014
Ah, note the plural function_s_ :)
I haven't been able to reproduce this.
olegbl commentedon Feb 20, 2014
Thanks! Totally missed that.
functions grepreturns nothing.It's quite strange. Running "grunt watch | grep reload" works just fine - it's just adb logcat that seems to not be working (though both work the same in bash).
Anyway, thanks for your help! Not a big deal to work around.
jonhoo commentedon Dec 6, 2014
Just encountered this bug myself. This reproduces the behaviour every time for me:
jonhoo commentedon Dec 6, 2014
Ah, just saw this comment over in #1396. I guess it'll be tracked there.