Hello!

Jonathan Nieder wrote:
> unmerge 646847
> retitle 646847 dash.1: document single-digit limitation on fd numbers in
> redirections severity 646847 minor
> quit
>
> Markus Raab wrote:
> > Maybe this behaviour can just be documented in the man-page:
>
> Sure --- that sounds like a sensible idea.  Given a patch in "diff -u"
> format (against src/dash.1 from the source tree, or
> /usr/share/man/man1/dash.1.gz from the binary package), I'd be happy
> to forward this upstream (or one can contact upstream directly as
> described at [1]).

Perfectly, thank you. See the patch below at [0].
The git repo at kernel.org seems to be still offline (it is empty?), so the 
patch is against the version in squeeze (dash 0.5.7).

I am not used to troff syntax - I just looked at the surrounding text - so I 
hope it is done correctly.

I also fixed a small mistake in the "See also" section, I think it should be 
chsh, because this is refered to in the beginning of the manpage while csh is 
never mentioned in the whole page.

> [...]
>
> > Even better would be to make the parser aware of this limitation and
> > print out a better message
>
> It's probably easier to remove the limitation. :)

You might be right on that ;)

> Thanks for your thoughtfulness.

Thanks for your quick and helpful response.

Best regards
Markus


[0] diff --git a/src/dash.1 b/src/dash.1
index 3847d98..21a48f8 100644
--- a/src/dash.1
+++ b/src/dash.1
@@ -385,10 +385,11 @@ is one of the redirection operators mentioned 
previously.
 Following is a list of the possible redirections.
 The
 .Bq n
-is an optional number, as in
-.Sq 3
-(not
-.Sq Bq 3 ) ,
+is an optional number between 0 and 9
+(written as
+.Sq 9
+and not
+.Sq Bq 9 )
 that refers to a file descriptor.
 .Bl -tag -width aaabsfiles -offset indent
 .It [n] Ns \*[Gt] file
@@ -2322,7 +2323,7 @@ The process ID of the parent process of the shell.
 .Pa /etc/profile
 .El
 .Sh SEE ALSO
-.Xr csh 1 ,
+.Xr chsh 1 ,
 .Xr echo 1 ,
 .Xr getopt 1 ,
 .Xr ksh 1 ,



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

Reply via email to