pipe into grep causing background process?

Issue #15 invalid
kra
created an issue

{{{ $ echo foo foo pipes work $ echo foo | grep foo foo but this is not what I expected, bg process w/o pid? $ echo foo | grep bar [1] not sure what's happening, it's not just a pipe into a no-output process $ echo foo | echo -n $ echo foo | grep bar | cat $ echo foo | grep foo | grep bar [1] }}}

Comments (3)

  1. kra reporter

    OK, non-zero exit status is output like that? Makes sense.

      $ (exit 1)
      [1]
      $ echo $?
      0
      $ (exit 0)
      $ echo $?
      0
      $ echo foo | grep bar
      [1]
      $ echo $?
      0
      $ echo foo | grep foo
      foo
      $ echo $?
      0
    
    
  2. Log in to comment