Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Our way is peace. -- Septimus, the Son Worshiper, "Bread and Circuses", stardate 4040.7.


devel / comp.unix.shell / >/dev/null 2>&1 vs 2>&1 >/dev/null

SubjectAuthor
* >/dev/null 2>&1 vs 2>&1 >/dev/nullhongy...@gmail.com
+* Re: >/dev/null 2>&1 vs 2>&1 >/dev/nullLew Pitcher
|`* Re: >/dev/null 2>&1 vs 2>&1 >/dev/nullhongy...@gmail.com
| `- Re: >/dev/null 2>&1 vs 2>&1 >/dev/nullLew Pitcher
+* Re: >/dev/null 2>&1 vs 2>&1 >/dev/nullHelmut Waitzmann
|`* Re: >/dev/null 2>&1 vs 2>&1 >/dev/nullhongy...@gmail.com
| `- Re: >/dev/null 2>&1 vs 2>&1 >/dev/nullSpiros Bousbouras
`- Re: >/dev/null 2>&1 vs 2>&1 >/dev/nullgerg

1
>/dev/null 2>&1 vs 2>&1 >/dev/null

<e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6277&group=comp.unix.shell#6277

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:7f08:0:b0:3f3:9062:4a72 with SMTP id f8-20020ac87f08000000b003f390624a72mr1212261qtk.4.1684540307701;
Fri, 19 May 2023 16:51:47 -0700 (PDT)
X-Received: by 2002:aca:e18a:0:b0:397:d7d1:1c00 with SMTP id
y132-20020acae18a000000b00397d7d11c00mr441564oig.4.1684540307520; Fri, 19 May
2023 16:51:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Fri, 19 May 2023 16:51:47 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=60.249.28.128; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 60.249.28.128
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com>
Subject: >/dev/null 2>&1 vs 2>&1 >/dev/null
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Fri, 19 May 2023 23:51:47 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: hongy...@gmail.com - Fri, 19 May 2023 23:51 UTC

For a long time, I'm confused on the subtle difference between the following two usages:

>/dev/null 2>&1
2>&1 >/dev/null

Could you please give me an example to present the difference?

Regards,
Zhao

Re: >/dev/null 2>&1 vs 2>&1 >/dev/null

<u4942j$nosi$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6278&group=comp.unix.shell#6278

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.unix.shell
Subject: Re: >/dev/null 2>&1 vs 2>&1 >/dev/null
Date: Sat, 20 May 2023 00:25:55 -0000 (UTC)
Organization: The Pitcher Digital Freehold
Lines: 36
Message-ID: <u4942j$nosi$2@dont-email.me>
References: <e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 20 May 2023 00:25:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6f9ccae32d01b9771ab979f9a4742c52";
logging-data="779154"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/X9BJjWgmoiKVQosOL/XbqAdDIwW/hcaE="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:UQEDgqIXl4ZV1OVUPEoXOVZ/sO4=
 by: Lew Pitcher - Sat, 20 May 2023 00:25 UTC

On Fri, 19 May 2023 16:51:47 -0700, hongy...@gmail.com wrote:

> For a long time, I'm confused on the subtle difference between the following two usages:
>
>>/dev/null 2>&1
> 2>&1 >/dev/null
>
> Could you please give me an example to present the difference?

The redirection
>/dev/null 2>&1
first directs stdout to /dev/null,
then directs stderr to whatever stdout is currently directed to.

If, for instance, stdout starts out being directed to /tmp/file1
and stderr starts out being directed to /tmp/file2, then
>/dev/null 2>&1
will result in both stdout and stderr directing to /dev/null

On the other hand, he redirection
2>&1 >/dev/null
first directs stderr to whatever stdout is currently directed to,
then directs stdout to /dev/null.

If, for instance, stdout starts out being directed to /tmp/file1
and stderr starts out being directed to /tmp/file2, then
2>&1 >/dev/null
will result in both stderr being directed to /tmp/file1, and
stdout being directed to /dev/null

HTH
--
Lew Pitcher
"In Skills We Trust"

Re: >/dev/null 2>&1 vs 2>&1 >/dev/null

<8cc92f0a-5614-40cd-8fbc-a8dacb648f5cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6279&group=comp.unix.shell#6279

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:620a:20c2:b0:757:8cc8:beb4 with SMTP id f2-20020a05620a20c200b007578cc8beb4mr892383qka.5.1684543586800;
Fri, 19 May 2023 17:46:26 -0700 (PDT)
X-Received: by 2002:a05:6870:90c5:b0:196:4186:4682 with SMTP id
s5-20020a05687090c500b0019641864682mr1050525oab.11.1684543586487; Fri, 19 May
2023 17:46:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Fri, 19 May 2023 17:46:26 -0700 (PDT)
In-Reply-To: <u4942j$nosi$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=60.249.28.129; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 60.249.28.129
References: <e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com> <u4942j$nosi$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8cc92f0a-5614-40cd-8fbc-a8dacb648f5cn@googlegroups.com>
Subject: Re: >/dev/null 2>&1 vs 2>&1 >/dev/null
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Sat, 20 May 2023 00:46:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 45
 by: hongy...@gmail.com - Sat, 20 May 2023 00:46 UTC

On Saturday, May 20, 2023 at 8:27:32 AM UTC+8, Lew Pitcher wrote:
> On Fri, 19 May 2023 16:51:47 -0700, hongy...@gmail.com wrote:
>
> > For a long time, I'm confused on the subtle difference between the following two usages:
> >
> >>/dev/null 2>&1
> > 2>&1 >/dev/null
> >
> > Could you please give me an example to present the difference?
> The redirection
> >/dev/null 2>&1
> first directs stdout to /dev/null,
> then directs stderr to whatever stdout is currently directed to.
>
> If, for instance, stdout starts out being directed to /tmp/file1
> and stderr starts out being directed to /tmp/file2, then
> >/dev/null 2>&1
> will result in both stdout and stderr directing to /dev/null
>
>
> On the other hand, he redirection
> 2>&1 >/dev/null
> first directs stderr to whatever stdout is currently directed to,
> then directs stdout to /dev/null.
>
> If, for instance, stdout starts out being directed to /tmp/file1
> and stderr starts out being directed to /tmp/file2, then
> 2>&1 >/dev/null
> will result in both stderr being directed to /tmp/file1, and
> stdout being directed to /dev/null

Thank you for your detailed explanation. If so, the following two seem equivalent:

>/dev/null 2>&1
2>/dev/null 1>&2

For simplicity, the first should be used.
> HTH
> --
> Lew Pitcher
> "In Skills We Trust"

Zhao

Re: >/dev/null 2>&1 vs 2>&1 >/dev/null

<u4974f$nosi$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6280&group=comp.unix.shell#6280

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.unix.shell
Subject: Re: >/dev/null 2>&1 vs 2>&1 >/dev/null
Date: Sat, 20 May 2023 01:18:07 -0000 (UTC)
Organization: The Pitcher Digital Freehold
Lines: 57
Message-ID: <u4974f$nosi$3@dont-email.me>
References: <e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com>
<u4942j$nosi$2@dont-email.me>
<8cc92f0a-5614-40cd-8fbc-a8dacb648f5cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 20 May 2023 01:18:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6f9ccae32d01b9771ab979f9a4742c52";
logging-data="779154"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xIItiO00+A/M5D3muY2V/w7JtBKSePTU="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:3ashZvWeEjeXjg+8HEODdRQOzcA=
 by: Lew Pitcher - Sat, 20 May 2023 01:18 UTC

On Fri, 19 May 2023 17:46:26 -0700, hongy...@gmail.com wrote:

> On Saturday, May 20, 2023 at 8:27:32 AM UTC+8, Lew Pitcher wrote:
>> On Fri, 19 May 2023 16:51:47 -0700, hongy...@gmail.com wrote:
>>
>> > For a long time, I'm confused on the subtle difference between the following two usages:
>> >
>> >>/dev/null 2>&1
>> > 2>&1 >/dev/null
>> >
>> > Could you please give me an example to present the difference?
>> The redirection
>> >/dev/null 2>&1
>> first directs stdout to /dev/null,
>> then directs stderr to whatever stdout is currently directed to.
>>
>> If, for instance, stdout starts out being directed to /tmp/file1
>> and stderr starts out being directed to /tmp/file2, then
>> >/dev/null 2>&1
>> will result in both stdout and stderr directing to /dev/null
>>
>>
>> On the other hand, he redirection
>> 2>&1 >/dev/null
>> first directs stderr to whatever stdout is currently directed to,
>> then directs stdout to /dev/null.
>>
>> If, for instance, stdout starts out being directed to /tmp/file1
>> and stderr starts out being directed to /tmp/file2, then
>> 2>&1 >/dev/null
>> will result in both stderr being directed to /tmp/file1, and
>> stdout being directed to /dev/null
>
> Thank you for your detailed explanation. If so, the following two seem equivalent:
>
>>/dev/null 2>&1
> 2>/dev/null 1>&2

Yes, they both result in stdout and stderr being directed to /dev/null

> For simplicity, the first should be used.

Yes. The common idiom is >/dev/null 2>&1

>> HTH
>> --
>> Lew Pitcher
>> "In Skills We Trust"
>
> Zhao

--
Lew Pitcher
"In Skills We Trust"

Re: >/dev/null 2>&1 vs 2>&1 >/dev/null

<83ilcn943u.fsf@helmutwaitzmann.news.arcor.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6281&group=comp.unix.shell#6281

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nn.throt...@xoxy.net (Helmut Waitzmann)
Newsgroups: comp.unix.shell
Subject: Re: >/dev/null 2>&1 vs 2>&1 >/dev/null
Date: Sat, 20 May 2023 03:35:49 +0200
Organization: A noiseless patient Spider
Lines: 31
Sender: Helmut Waitzmann <12f7e638@mail.de>
Message-ID: <83ilcn943u.fsf@helmutwaitzmann.news.arcor.de>
References: <e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com>
Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="98597de439c970dd06935b8c1cad966c";
logging-data="895232"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NMnfZAujmelcJFFFnOy2vb5jaPYyCr1Q="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
Cancel-Lock: sha1:wA/zNwYKDcN76ryPR1Z972aHCHE=
sha1:6vlEQAortCjNA3rOfEnryvYjHog=
Mail-Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net>
Mail-Copies-To: nobody
 by: Helmut Waitzmann - Sat, 20 May 2023 01:35 UTC

"hongy...@gmail.com" <hongyi.zhao@gmail.com>:
> For a long time, I'm confused on the subtle difference between
> the following two usages:
>
> >/dev/null 2>&1
> 2>&1 >/dev/null
>
> Could you please give me an example to present the difference?
>

Do you have access to news articles back in 2021?  Then you might
take a look at the article

Subject: Redirecting file descriptors (was: How to redirect
to non-standard file descriptors?)
From: Helmut Waitzmann <nn.throttle@xoxy.net>
Newsgroups: comp.unix.shell
Date: Tue, 05 Oct 2021 21:55:27 +0200
Message-ID: <835yubi6vk.fsf@helmutwaitzmann.news.arcor.de>
References: <irtteiFpfsqU1@mid.individual.net>

It is a followup to an article posted by Robert Latest, who asked
a similar question as you do.

If you (or any other person) don't have access to it any more, I
could either send it to you by e‐mail or repost it here.

Also
<http://al.howardknight.net/?STYPE=msgid&A=0&MSGI=%3C835yubi6vk.fsf%40helmutwaitzmann.news.arcor.de%3E>
might help you.

Re: >/dev/null 2>&1 vs 2>&1 >/dev/null

<ba6d1ff7-5a2e-4026-9b10-4590d20d8fa2n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6282&group=comp.unix.shell#6282

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:6214:a63:b0:5ef:435e:d25d with SMTP id ef3-20020a0562140a6300b005ef435ed25dmr829133qvb.2.1684551529639;
Fri, 19 May 2023 19:58:49 -0700 (PDT)
X-Received: by 2002:a05:6871:b25:b0:187:7f29:c1 with SMTP id
fq37-20020a0568710b2500b001877f2900c1mr2702723oab.0.1684551529312; Fri, 19
May 2023 19:58:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Fri, 19 May 2023 19:58:49 -0700 (PDT)
In-Reply-To: <83ilcn943u.fsf@helmutwaitzmann.news.arcor.de>
Injection-Info: google-groups.googlegroups.com; posting-host=60.249.28.129; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 60.249.28.129
References: <e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com> <83ilcn943u.fsf@helmutwaitzmann.news.arcor.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ba6d1ff7-5a2e-4026-9b10-4590d20d8fa2n@googlegroups.com>
Subject: Re: >/dev/null 2>&1 vs 2>&1 >/dev/null
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Sat, 20 May 2023 02:58:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3001
 by: hongy...@gmail.com - Sat, 20 May 2023 02:58 UTC

On Saturday, May 20, 2023 at 9:48:14 AM UTC+8, Helmut Waitzmann wrote:
> "hongy...@gmail.com" <hongy...@gmail.com>:
> > For a long time, I'm confused on the subtle difference between
> > the following two usages:
> >
> > >/dev/null 2>&1
> > 2>&1 >/dev/null
> >
> > Could you please give me an example to present the difference?
> >
> Do you have access to news articles back in 2021? Then you might
> take a look at the article
>
> Subject: Redirecting file descriptors (was: How to redirect
> to non-standard file descriptors?)
> From: Helmut Waitzmann <nn.th...@xoxy.net>
> Newsgroups: comp.unix.shell
> Date: Tue, 05 Oct 2021 21:55:27 +0200
> Message-ID: <835yubi...@helmutwaitzmann.news.arcor.de>
> References: <irttei...@mid.individual.net>
>
> It is a followup to an article posted by Robert Latest, who asked
> a similar question as you do.
>
> If you (or any other person) don't have access to it any more, I
> could either send it to you by e‐mail or repost it here.
>
> Also
> <http://al.howardknight.net/?STYPE=msgid&A=0&MSGI=%3C835yubi6vk.fsf%40helmutwaitzmann.news.arcor.de%3E>
> might help you.

I can open the above URL, but the message shown there includes some non-human readable stuff, for example:

the shell first will do the same and then tell the kernel by means=20
of the system service =E2=80=9Cdup2=E2=80=9D to copy the contents of the entry #1 to=20
the entry #2.=C2=A0 Now two entries in the process' file descriptor=20
table=C2=A0=E2=80=93 #1 and #2=C2=A0=E2=80=93 refer to the opened file =E2=80=9Coutput.txt=E2=80=9D.

Best,
Zhao

Re: >/dev/null 2>&1 vs 2>&1 >/dev/null

<LcLiMU3vPJq+ZWBRC@bongo-ra.co>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6283&group=comp.unix.shell#6283

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: spi...@gmail.com (Spiros Bousbouras)
Newsgroups: comp.unix.shell
Subject: Re: >/dev/null 2>&1 vs 2>&1 >/dev/null
Date: Sat, 20 May 2023 05:13:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <LcLiMU3vPJq+ZWBRC@bongo-ra.co>
References: <e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com> <83ilcn943u.fsf@helmutwaitzmann.news.arcor.de> <ba6d1ff7-5a2e-4026-9b10-4590d20d8fa2n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 20 May 2023 05:13:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eab9c910658cd3b19ff06ad6cac76801";
logging-data="1052093"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1NnycG8bLHOnFoJojdKes"
Cancel-Lock: sha1:04MAS19hYmthJBingWthXdcLVnw=
X-Server-Commands: nowebcancel
X-Organisation: Weyland-Yutani
In-Reply-To: <ba6d1ff7-5a2e-4026-9b10-4590d20d8fa2n@googlegroups.com>
 by: Spiros Bousbouras - Sat, 20 May 2023 05:13 UTC

On Fri, 19 May 2023 19:58:49 -0700 (PDT)
"hongy...@gmail.com" <hongyi.zhao@gmail.com> wrote:
> > Also
> > <http://al.howardknight.net/?STYPE=msgid&A=0&MSGI=%3C835yubi6vk.fsf%40helmutwaitzmann.news.arcor.de%3E>
> > might help you.

More simply http://al.howardknight.net/?ID=165151671300 .I have that
whole thread saved , very instructive.

> I can open the above URL, but the message shown there includes some
> non-human readable stuff, for example:
>
> the shell first will do the same and then tell the kernel by means=20
> of the system service =E2=80=9Cdup2=E2=80=9D to copy the contents of the en=
> try #1 to=20
> the entry #2.=C2=A0 Now two entries in the process' file descriptor=20
> table=C2=A0=E2=80=93 #1 and #2=C2=A0=E2=80=93 refer to the opened file =E2=
> =80=9Coutput.txt=E2=80=9D.

quoted-printable strikes again. al.howardknight.net doesn't do any
decoding of the articles. =E2=80=9C means the 3 octets with hexadecimal
values E2 , 80 , 9C which correspond to a certain quote character (not
the familiar ASCII quotes) in UTF-8 encoding.

Re: >/dev/null 2>&1 vs 2>&1 >/dev/null

<u4bukb$bta$1@reader2.panix.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6284&group=comp.unix.shell#6284

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!panix!.POSTED.panix2.panix.com!not-for-mail
From: ger...@panix.com (gerg)
Newsgroups: comp.unix.shell
Subject: Re: >/dev/null 2>&1 vs 2>&1 >/dev/null
Date: Sun, 21 May 2023 02:11:23 -0000 (UTC)
Organization: Public Access Networks Corp.
Message-ID: <u4bukb$bta$1@reader2.panix.com>
References: <e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com>
Injection-Date: Sun, 21 May 2023 02:11:23 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="12202"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
 by: gerg - Sun, 21 May 2023 02:11 UTC

In article <e09ff1ac-02e0-49dc-a590-d4917e1f02f6n@googlegroups.com>,
hongy...@gmail.com <hongyi.zhao@gmail.com> wrote:
>For a long time, I'm confused on the subtle difference between the following two usages:
>
>>/dev/null 2>&1
>2>&1 >/dev/null
>
>Could you please give me an example to present the difference?
>

There are also documents on the Internet that go into detail about
these sort of things. For example:

<https://mywiki.wooledge.org/BashGuide/InputAndOutput#line-327>

(scrolling up a little bit on the page also gives useful info)

--
::::::::::::: Greg Andrews ::::: gerg@panix.com :::::::::::::
I have a map of the United States that's actual size.
-- Steven Wright

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor