Subject: bin/3613: missing right brackets in 'cp' usage.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <oster@cs.usask.ca>
List: netbsd-bugs
Date: 05/13/1997 09:03:43
>Number: 3613
>Category: bin
>Synopsis: missing right brackets in 'cp' usage.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 13 08:05:01 1997
>Last-Modified:
>Originator: Greg Oster
>Organization:
University of Saskatchewan
>Release: NetBSD-current up to May 13, 1997
>Environment:
System: NetBSD jasmine.usask.ca 1.2E NetBSD 1.2E (JASMINE.BB) #0: Fri May 9 11:35:20 CST 1997 oster@jasmine.usask.ca:/home/netbsd/current/src/sys/arch/i386/compile/JASMINE.BB i386
>Description:
Usage lines of "cp" are each missing a right bracket (']').
>How-To-Repeat:
oster@jasmine.usask.ca-11> cp -H
usage: cp [-R [-H | -L | -P] [-fip] src target
cp [-R [-H | -L | -P] [-fip] src1 ... srcN directory
oster@jasmine.usask.ca-12>
Note the mis-match of brackets in both usage lines.
>Fix:
"man cp" and observe that the usage mentioned there is correct.
Tweak /src/bin/cp/utils.c thusly:
*** utils.c.orig Tue May 13 08:52:06 1997
--- utils.c Tue May 13 08:52:22 1997
***************
*** 291,297 ****
usage()
{
(void)fprintf(stderr, "%s\n%s\n",
! "usage: cp [-R [-H | -L | -P] [-fip] src target",
! " cp [-R [-H | -L | -P] [-fip] src1 ... srcN directory");
exit(1);
}
--- 291,297 ----
usage()
{
(void)fprintf(stderr, "%s\n%s\n",
! "usage: cp [-R [-H | -L | -P]] [-fip] src target",
! " cp [-R [-H | -L | -P]] [-fip] src1 ... srcN directory");
exit(1);
}
>Audit-Trail:
>Unformatted: