Skip to main content
deleted 2 characters in body
Source Link
gavenkoa
  • 49.6k
  • 28
  • 273
  • 339

Look here:

  $ echo xxx | tee >(xargs test -n); echo $?
xxx
0
  $ echo xxx | tee >(xargs test -z); echo $?
xxx
0

and look here:

  $echo xxx | tee >(xargs test -z; echo  "${PIPESTATUS[*]}")
xxx
123
  $echo xxx | tee >(xargs test -n; echo  "${PIPESTATUS[*]}")
xxx
0

That isIs it?

See also Pipe status after command substitution

Look here:

  $ echo xxx | tee >(xargs test -n); echo $?
xxx
0
  $ echo xxx | tee >(xargs test -z); echo $?
xxx
0

and look here:

  $echo xxx | tee >(xargs test -z; echo  "${PIPESTATUS[*]}")
xxx
123
  $echo xxx | tee >(xargs test -n; echo  "${PIPESTATUS[*]}")
xxx
0

That is?

See also Pipe status after command substitution

Look here:

  $ echo xxx | tee >(xargs test -n); echo $?
xxx
0
  $ echo xxx | tee >(xargs test -z); echo $?
xxx
0

and look here:

  $echo xxx | tee >(xargs test -z; echo  "${PIPESTATUS[*]}")
xxx
123
  $echo xxx | tee >(xargs test -n; echo  "${PIPESTATUS[*]}")
xxx
0

Is it?

See also Pipe status after command substitution

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Look here:

  $ echo xxx | tee >(xargs test -n); echo $?
xxx
0
  $ echo xxx | tee >(xargs test -z); echo $?
xxx
0

and look here:

  $echo xxx | tee >(xargs test -z; echo  "${PIPESTATUS[*]}")
xxx
123
  $echo xxx | tee >(xargs test -n; echo  "${PIPESTATUS[*]}")
xxx
0

That is?

See also Pipe status after command substitutionPipe status after command substitution

Look here:

  $ echo xxx | tee >(xargs test -n); echo $?
xxx
0
  $ echo xxx | tee >(xargs test -z); echo $?
xxx
0

and look here:

  $echo xxx | tee >(xargs test -z; echo  "${PIPESTATUS[*]}")
xxx
123
  $echo xxx | tee >(xargs test -n; echo  "${PIPESTATUS[*]}")
xxx
0

That is?

See also Pipe status after command substitution

Look here:

  $ echo xxx | tee >(xargs test -n); echo $?
xxx
0
  $ echo xxx | tee >(xargs test -z); echo $?
xxx
0

and look here:

  $echo xxx | tee >(xargs test -z; echo  "${PIPESTATUS[*]}")
xxx
123
  $echo xxx | tee >(xargs test -n; echo  "${PIPESTATUS[*]}")
xxx
0

That is?

See also Pipe status after command substitution

Source Link
gavenkoa
  • 49.6k
  • 28
  • 273
  • 339

Look here:

  $ echo xxx | tee >(xargs test -n); echo $?
xxx
0
  $ echo xxx | tee >(xargs test -z); echo $?
xxx
0

and look here:

  $echo xxx | tee >(xargs test -z; echo  "${PIPESTATUS[*]}")
xxx
123
  $echo xxx | tee >(xargs test -n; echo  "${PIPESTATUS[*]}")
xxx
0

That is?

See also Pipe status after command substitution