Project

General

Profile

Bug #2049

env(1) should print program it attempts to exec on error, not argv[0]

Added by Albert Lee almost 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Low
Category:
cmd - userland programs
Start date:
2012-01-31
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

If env is passed a command (utility in the manpage) which it is unable to execute, it currently prints unhelpful and misleading error messages like "/usr/bin/env: No such file or directory" for ENOENT. It should be including the pathname that failed.

#1

Updated by Albert Lee almost 9 years ago

  • Assignee set to Robert Mustacchi

Thanks for volunteering. :)

#2

Updated by Robert Mustacchi almost 9 years ago

Current behavior:

$ /usr/bin/env foobar
/usr/bin/env: No such file or directory

New behavior:

$ ./usr/bin/env foobar
./usr/bin/env: foobar: No such file or directory
#3

Updated by Robert Mustacchi over 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Tags deleted (needs-triage)

Resolved in 13707:3f41b24ce657.

Also available in: Atom PDF