Bug 436241 - ferror requires absolute path to executable; doesn't use PATH
Summary: ferror requires absolute path to executable; doesn't use PATH
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: frysk
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Andrew Cagney
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-06 02:26 UTC by Dave Malcolm
Modified: 2008-04-07 18:22 UTC (History)
3 users (show)

Fixed In Version: 0.2.1
Clone Of:
Environment:
Last Closed: 2008-04-07 18:22:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 5849 0 None None None Never

Description Dave Malcolm 2008-03-06 02:26:40 UTC
Description of problem:
ferror requires absolute path to executable; doesn't use PATH

Following example from ferror man page:
EXAMPLE
           ferror -e "No such file or directory" -- ls fake

and omitting the path, it fails to find the executable, this is:
[david@brick ~]$ ferror -e "No such file or directory" -- ls fake
Error: open: No such file or directory (file /home/david/ls)

Specifying full path to exe works:
[david@brick ~]$ ferror -e "No such file or directory" -- /bin/ls fake
Tracing 7233.7233

Tool would be much more usable if it looked in PATH, allowing you to omit the
absolute location of the exe.  As it is, the example in the manpage fails.

Version-Release number of selected component (if applicable):
frysk-0.0.1.2008.02.29.rh1-1.fc8

How reproducible:
100%

Comment 1 Andrew Cagney 2008-04-07 18:22:33 UTC
My fix:

$ ferror -- ls loop.c
Tracing 2485.2485
loop.c



Note You need to log in before you can comment on or make changes to this bug.