Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 1998 21:09:48 -0800 (PST)
From:      jason_smethers@bigfoot.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/5714: /bin/pwd code and man page cleanup
Message-ID:  <199802110509.VAA20651@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         5714
>Category:       bin
>Synopsis:       /bin/pwd code and man page cleanup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 10 21:10:24 PST 1998
>Last-Modified:
>Originator:     Jason Smethers
>Organization:
>Release:        3.0-Current
>Environment:
FreeBSD p90unix.vipersystems.com 3.0-CURRENT FreeBSD 3.0-CURRENT #1: Sun Feb  8 17:26:35 CST 1998     root@p90unix.vipersystems.com:/usr/src/sys/compile/P90UNIX  i386
>Description:
Gerneral code and man page cleanup
>How-To-Repeat:

>Fix:
diff -c -r /usr/src/bin/pwd/pwd.1 /usr/local/src/bin/pwd/pwd.1
*** /usr/src/bin/pwd/pwd.1	Sat Feb 22 08:05:15 1997
--- /usr/local/src/bin/pwd/pwd.1	Mon Feb  9 20:07:36 1998
***************
*** 48,58 ****
  writes the absolute pathname of the current working directory to
  the standard output.
  .Pp
! The pwd utility exits 0 on success, and >0 if an error occurs.
  .Sh STANDARDS
  The
  .Nm pwd
! command is expected to be
  .St -p1003.2
  compatible.
  .Sh SEE ALSO
--- 48,60 ----
  writes the absolute pathname of the current working directory to
  the standard output.
  .Pp
! The
! .Nm pwd
! utility exits 0 on success, and >0 if an error occurs.
  .Sh STANDARDS
  The
  .Nm pwd
! utility is expected to be
  .St -p1003.2
  compatible.
  .Sh SEE ALSO
***************
*** 61,67 ****
  .Xr getcwd 3
  .Sh BUGS
  In
! .Xr csh  1
  the command
  .Ic dirs
  is always faster (although it can give a different answer in the rare case
--- 63,69 ----
  .Xr getcwd 3
  .Sh BUGS
  In
! .Xr csh 1
  the command
  .Ic dirs
  is always faster (although it can give a different answer in the rare case
diff -c -r /usr/src/bin/pwd/pwd.c /usr/local/src/bin/pwd/pwd.c
*** /usr/src/bin/pwd/pwd.c	Fri Mar 28 09:24:31 1997
--- /usr/local/src/bin/pwd/pwd.c	Mon Feb  9 20:14:43 1998
***************
*** 48,53 ****
--- 48,54 ----
  #include <stdlib.h>
  #include <unistd.h>
  
+ void usage __P((int, char *[]));
  void usage __P((void));
  
  int
***************
*** 80,86 ****
  		usage();
  
  	if ((p = getcwd(NULL, 0)) == NULL)
! 		err(1, NULL);
  	(void)printf("%s\n", p);
  	exit(0);
  }
--- 81,87 ----
  		usage();
  
  	if ((p = getcwd(NULL, 0)) == NULL)
! 		err(1, "getcwd");
  	(void)printf("%s\n", p);
  	exit(0);
  }

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802110509.VAA20651>