記事
en
Shell Redirection Order
情報源: /dev/null ·
A Brief Intro When i take a look at bash’s documentation about shell redirection , i found out that this two examples are different. This one: ls > dirlist 2>&1 and this one: ls 2>&1 > dirlist So let’s try understanding why it is different. What 2>&1 means? From this hacker news comment , it looks like the expression 2>&1 is like calling system call dup2(2, 1). If we take a look at the man page (man dup2), here is one of the description:
関連する発見
-
Ardbeg Ten Cask Strength
記事 · Whisky and Wisdom
-
The etiquette and politics of whisky write-ups and reviews
記事 · Whisky and Wisdom
-
The Glendronach “Ode to….” series
記事 · Whisky and Wisdom
-
Jack Daniel’s 10 Years Old
記事 · Whisky and Wisdom
-
Glenfiddich 16 Aston Martin
記事 · Whisky and Wisdom
-
Falkirk Distillery
記事 · Whisky and Wisdom