Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Nov 1998 17:19:41 -0500 (EST)
From:      pauls@etext.org
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/8593: 'uptime' behavior varies by arg zero
Message-ID:  <199811072219.RAA00620@shit.etext.org>

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

>Number:         8593
>Category:       bin
>Synopsis:       'uptime' behavior varies by arg zero
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov  7 14:30:00 PST 1998
>Last-Modified:
>Originator:     Paul Southworth
>Organization:
>Release:        FreeBSD 3.0-RELEASE i386
>Environment:

	Problem occurs when using either /bin/csh or /bin/sh
	FreeBSD 2.2.7-RELEASE does not have this problem.

>Description:

	If 'uptime' is invoked as 'uptime', it works properly.
	If 'uptime' is invoked as '/usr/bin/uptime', it behaves as 'w'.

>How-To-Repeat:

$ uptime
 5:01PM  up 29 mins, 3 users, load averages: 0.00, 0.00, 0.00
$ /usr/bin/uptime
 5:01PM  up 29 mins, 3 users, load averages: 0.00, 0.00, 0.00
USER             TTY      FROM              LOGIN@  IDLE WHAT
pauls            p1       :0.0              4:33PM    36 -sh (csh)
pauls            p2       :0.0              4:33PM     - /usr/bin/uptime
pauls            p3       :0.0              4:33PM 2days -sh (csh)
$ ident /usr/bin/uptime
/usr/bin/uptime:
     $Id: fmt.c,v 1.12 1998/06/17 11:33:10 jkoshy Exp $
     $Id: pr_time.c,v 1.11 1997/12/28 17:50:10 alex Exp $
     $Id: w.c,v 1.28 1998/06/09 04:35:20 imp Exp $

There is only one 'uptime' executable on the system, and 'uptime' is
'/usr/bin/uptime' in my $PATH.  System is 100% vanilla 3.0-RELEASE.

>Fix:
>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?199811072219.RAA00620>