Bug 35718 - which(1) command does not handle file names with a '/' inside.
Summary: which(1) command does not handle file names with a '/' inside.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 1.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-09 23:30 UTC by Wolfram Schneider
Modified: 2002-06-30 07:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schneider freebsd_committer freebsd_triage 2002-03-09 23:30:00 UTC
      The new c version of which(1) command does not handle
file names with a '/' inside.

$ cd /tmp
$ env PATH=/usr/bin which ../bin/cat
$ echo $?
1

It should returns:
../bin/cat
Comment 1 Tim Robbins freebsd_committer freebsd_triage 2002-06-30 07:03:12 UTC
State Changed
From-To: open->closed

Revision 1.5 of which.c corrects this problem. Thanks.