Package: dash Version: 0.5.3-7 Severity: normal Tags: patch The dash manpage, in the 'Redirections' section, contains the following entries:
[n1]<&n2 Duplicate standard input (or n1) from file descriptor n2. [n1]>&n2 Duplicate standard output (or n1) to n2. These two seem to be reversed in meaning. For example, taking the second one, it says that doing '1>&3' will duplicate fd1 to fd3. However, trying this does the following: $ echo hello 1>&3 dash: 3: Bad file descriptor Trying the other way around works just fine though: $ echo hello 3>&1 hello This seems to agree with the bash man page, for example. Steve -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-6-k7 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages dash depends on: ii libc6 2.3.6.ds1-13etch7 GNU C Library: Shared libraries dash recommends no packages. -- debconf information: dash/sh: false
diff -urN dash-0.5.3.orig/src/dash.1 dash-0.5.3/src/dash.1 --- dash-0.5.3.orig/src/dash.1 2005-11-26 04:17:55.000000000 +0100 +++ dash-0.5.3/src/dash.1 2008-10-08 14:58:40.000000000 +0200 @@ -403,11 +403,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