[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: >&2 vs. 1>&2
From: |
Bruno Haible |
Subject: |
Re: >&2 vs. 1>&2 |
Date: |
Wed, 20 Mar 2013 22:22:10 +0100 |
User-agent: |
KMail/4.8.5 (Linux/3.4.11-2.16-desktop; KDE/4.8.5; x86_64; ; ) |
Karl Berry asked:
> Is there a portability reason to use 1>&2 vs. just >&2 to redirect to stderr?
> I don't know of one, and don't see it mentioned in autoconf(Portable Shell).
> The gnupload script currently uses both.
I'm not aware of any portability problem here.
It's more a question of style. I use 1>&2 and 2>&1 quite frequently, and would
find it odd to omit the '1' in one case but not in the other case.
Bruno