dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dash: details of redirection/duplication in manpage are reversed
@ 2014-11-10 11:19 Stéphane Aulery
  2014-11-10 13:24 ` Herbert Xu
  0 siblings, 1 reply; 22+ messages in thread
From: Stéphane Aulery @ 2014-11-10 11:19 UTC (permalink / raw)
  To: dash; +Cc: control

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

forwarded 501566 dash@vger.kernel.org
stop
-------------------------------------------------------

Hello,

Here is a small patch reported by a user of Debian [1]. Could you please
integrate? Thank you for your help.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501566

Regards,

-- 
Stéphane Aulery

[-- Attachment #2: dash.1.fix-redirection-docs.diff --]
[-- Type: text/x-diff, Size: 580 bytes --]

--- dash.1.old	2014-11-10 12:15:29.809398575 +0100
+++ dash.1.new	2014-11-10 12:17:03.401856125 +0100
@@ -402,11 +402,11 @@
 .It [n] Ns \*[Lt] file
 Redirect standard input (or n) from file.
 .It [n1] Ns \*[Lt]& Ns n2
-Duplicate standard input (or n1) from file descriptor n2.
+Duplicate standard input (or n1) to file descriptor n2.
 .It [n] Ns \*[Lt]&-
 Close standard input (or n).
 .It [n1] Ns \*[Gt]& Ns n2
-Duplicate standard output (or n1) to n2.
+Duplicate standard output (or n1) from n2.
 .It [n] Ns \*[Gt]&-
 Close standard output (or n).
 .It [n] Ns \*[Lt]\*[Gt] file

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Bug#501566: [MAN] Clarify two redirection mechanisms
@ 2014-12-08 18:50 Stéphane Aulery
  2014-12-08 20:37 ` Stephane CHAZELAS
  0 siblings, 1 reply; 22+ messages in thread
From: Stéphane Aulery @ 2014-12-08 18:50 UTC (permalink / raw)
  To: 501566, dash, stephane.chazelas

Hello,

Stéphane Chazelas said:
> Herbert Xu said:
>>
>> "Resource" is rather unwieldy, how about simply "file"?
>
> "file" could be misleading
>
> [...]
>
> IMO, "resource" is vague enough so as not to give the wrong idea
> and I like that wording because it conveys the intended
> mechanism clearly ("redirect to same thing as"). But I agree
> it's not ideal.

It is true that "resource" is dissonant as "file" is too restrictive. The
term "file descriptor" is used above. Why not use it again?

Regards,

-- 
Stéphane Aulery


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Bug#501566: [MAN] Clarify two redirection mechanisms
  2014-12-08 21:22   ` Stéphane Aulery
@ 2014-12-09 16:54 Stephane CHAZELAS
  2014-12-11  9:03 ` saulery
  0 siblings, 1 reply; 22+ messages in thread
From: Stephane CHAZELAS @ 2014-12-09 16:54 UTC (permalink / raw)
  To: Stéphane Aulery; +Cc: 501566, dash

2014-12-08 22:22:03 +0100, Stéphane Aulery:
> Le lundi 08 décembre 2014 à 08:37:38, Stephane CHAZELAS a écrit :
> > 2014-12-08 19:50:05 +0100, Stéphane Aulery:
> > >>>> [n1]>&n2    Redirect standard output (or fd n1) to the same "open
> > >>>>             file description" as on fd n2.
> > >>>> 
> > >>>> [n1]>&n2    Copy fd n2 as stdout (or fd n1)
[...]
> I wonder more and more if Herbert is willing to accept this tiny patch
> or another. I would not be wasting his time if he does not want or can
> not take care of that. This is free software, there is no obligation.
[...]

What matters here is the mistake fixed in the manual. n>&p has
been around since the end of the 70s. It's unlikely anyone will
learn anything about it from the dash man page. 

Let's make it:

  [n1]>&n2    Copy file descriptor n2 as stdout (or fd n1)
  [n1]<&n2    Copy file descriptor n2 as stdin (or fd n1)

That's more or less the POSIX wording. It may not be as
descriptive as other ones, but I can't imagine anyone
complaining about the correctness or accuracy of it.

-- 
Stephane

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-12-26 11:38 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-10 11:19 dash: details of redirection/duplication in manpage are reversed Stéphane Aulery
2014-11-10 13:24 ` Herbert Xu
2014-11-10 13:49   ` Stéphane Aulery
2014-11-11 13:23     ` Bug#501566: " Stephen Shirley
2014-11-11 14:19       ` Stephane Chazelas
2014-11-12  2:13         ` Herbert Xu
2014-11-11 15:08       ` Herbert Xu
2014-11-11 20:46         ` Stéphane Aulery
2014-11-11 20:47           ` Stéphane Aulery
2014-11-12  2:12             ` Herbert Xu
2014-11-12 11:09               ` Stéphane Aulery
2014-11-21 11:52               ` [MAN] Clarify two redirection mechanisms saulery
2014-12-01 10:04                 ` Herbert Xu
2014-12-01 12:27                   ` Stephane Chazelas
2014-11-18 23:27       ` Bug#501566: dash: details of redirection/duplication in manpage are reversed Stéphane Aulery
2014-11-18 23:46         ` Stéphane Aulery
2014-11-19  0:00           ` Stéphane CHAZELAS
2014-12-08 18:50 Bug#501566: [MAN] Clarify two redirection mechanisms Stéphane Aulery
2014-12-08 20:37 ` Stephane CHAZELAS
2014-12-08 21:22   ` Stéphane Aulery
2014-12-08 21:56     ` Jonathan Nieder
2014-12-08 22:15       ` Stéphane Aulery
2014-12-09 16:54 Bug#501566: " Stephane CHAZELAS
2014-12-11  9:03 ` saulery
2014-12-25 22:51   ` Herbert Xu
2014-12-26 11:35     ` Stéphane Aulery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).