News for hackers. Stuff that matters.
Re:What does " 2>&1 " mean? by tempodox on Friday February 27, 2026 @12:44AM (#47176927)
That’s nothing, try `&>`.
Re:What does " 2>&1 " mean? by oguz-ismail2 on Friday February 27, 2026 @03:16AM (#47177973)
This is one of those places where Bash diverges from POSIX. The standard says `echo &>/dev/null' is two commands, namely `echo &' and `>/dev/null', but Bash interprets it as redirect both stdout and stderr of `echo' to `/dev/null' both in normal and POSIX mode.
Re:What does " 2>&1 " mean? by jolmg on Friday February 27, 2026 @04:58AM (#47178684)
Also known as `>&`.

  cmd >&out-and-err.txt