Program named "local" is not run

Bug #217981 reported by Paul Smith
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dash (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: dash

I have a program named "local" on my PATH, but dash doesn't execute it:

$ cat > local
#!/bin/sh
echo hi

$ chmod 755 local

$ PATH=$PATH:.

$ local

$ ./local
hi

I think dash is trying to implement the bash extension for "local" variables (see bug #139097) However, this is not a POSIX feature and "local" is not listed as a shell reserved word, or even an optional reserved word.

$ dpkg -l dash
ii dash 0.5.4-1ubuntu3

Revision history for this message
Daniel T Chen (crimsun) wrote :

confirmed in 8.10 and 9.04

Changed in dash:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.