NetBSD-Bugs archive

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

bin/48499: sh(1) doesn't allow the POSIX command(1) -pv



>Number:         48499
>Category:       bin
>Synopsis:       sh(1) doesn't allow the POSIX command(1) -pv
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 04 16:50:00 +0000 2014
>Originator:     Steffen
>Release:        head
>Organization:
>Environment:
NetBSD nhead 6.99.28 NetBSD 6.99.28 (GENERIC) #0: Fri Jan  3 05:24:46 UTC 2014  
builds%b8.netbsd.org@localhost:/home/builds/ab/HEAD/i386/201401022300Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC
 i386
>Description:
* [steffen@nhead]$ command -pv sed
command: cannot specify -p with -v or -V

POSIX [1]:

  Issue 7
    Austin Group Interpretation 1003.1-2001 #196 is applied, changing the 
SYNOPSIS to allow -p to be used with -v (or -V).

 [1] <http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html>
>How-To-Repeat:
* [steffen@nhead]$ command -vp sh
/bin/sh
>Fix:
--- exec.c.orig 2014-01-03 23:17:17.000000000 +0100
+++ exec.c      2014-01-03 23:17:04.000000000 +0100
@@ -974,9 +974,6 @@ typecmd(int argc, char **argv)
                }
        }
 
-       if (p_flag && (v_flag || V_flag))
-               error("cannot specify -p with -v or -V");
-
        while ((arg = *argptr++)) {
                if (!v_flag)
                        out1str(arg);



Home | Main Index | Thread Index | Old Index