NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

standards/40554: >& -operator incorrectly documented in sh(1) man page

>Number:         40554
>Category:       standards
>Synopsis:       >& -operator incorrectly documented in sh(1) man page
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    standards-manager
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 04 15:50:00 +0000 2009
>Originator:     Jarmo Jaakkola
>Release:        NetBSD 4.0_STABLE
#9: Fri Jan 11 12:54:24 EET 2008 
Architecture: i386
Machine: i386
This is what the manual page of sh(1) says about the >& -operator:
    [n1]>&n2    Duplicate standard output (or n1) to n2.

This is what The Single UNIX ® Specification, Version 2
has to say about that:
    is used to duplicate one output file descriptor from another, or to
    close one. If word evaluates to one or more digits, the file
    descriptor denoted by n, or standard output if n is not specified,
    will be made to be a copy of the file descriptor denoted by word; ...

(As I understand, The Single Unix ® Specification is quite close to
the POSIX 1003.2 specication that sh(1) claims conformance with)


Replace "Duplicate standard output (or n1) to n2." with correct wording.

Home | Main Index | Thread Index | Old Index