Subject: bin/5725: Problem of lorder.sh
To: None <gnats-bugs@gnats.netbsd.org>
From: Kazushi (Jam) Marukawa <jam@pobox.com>
List: netbsd-bugs
Date: 07/09/1998 01:03:45
>Number:         5725
>Category:       bin
>Synopsis:       lorder.sh calls sort and join without setting PATH.
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul  8 23:20:00 1998
>Last-Modified:
>Originator:     Kazushi (Jam) Marukawa
>Organization:
>Release:        Jul  7 19:28:42 1998
>Environment:
System: NetBSD sou.nerv.org 1.3F NetBSD 1.3F (sou) #0: Fri Jul 3 19:22:22 CDT 1998 jam@sou.nerv.org:/usr/src/znewide-980703/sys/arch/i386/compile/sou i386


>Description:
/usr/bin/lorder is a shell script and calls `sort' and `join' without
setting PATH or specifying the version and place of them.  It makes
troubles if your's directory in PATH has join or sort command.
>How-To-Repeat:
Depend on the environment.
>Fix:
Simply use `/usr/bin/sort' and `/usr/bin/join' in lorder.sh.  Or add
`PATH=/usr/bin:/bin' at the forst of lorder.sh.

But current lorder.sh has to use PATH to specify the nm which may be
in the userland like GNU-nm.  So I think first solution is better for
us.

-- Kazushi Marukawa
>Audit-Trail:
>Unformatted: