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
>Organization:
>Environment:
System: NetBSD arthur.ritari.tontut.fi 4.0_STABLE NetBSD 4.0_STABLE (ARTHUR) 
#9: Fri Jan 11 12:54:24 EET 2008 
jammuli%arthur.ritari.tontut.fi@localhost:/usr/src/sys/arch/i386/compile/ARTHUR 
i386
Architecture: i386
Machine: i386
>Description:
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
(http://www.opengroup.org/onlinepubs/007908799/xcu/chap2.html#tag_001_007_006) 
has to say about that:
    [n]>&word
    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)

>How-To-Repeat:
>Fix:

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



Home | Main Index | Thread Index | Old Index