Skip to content

Commit

Permalink
Merge pull request #1551 from davidkh/fix-hash-bang
Browse files Browse the repository at this point in the history
Fix for issue #1550
  • Loading branch information
JeffBezanson committed Nov 16, 2012
2 parents b30dfd9 + eeb005d commit c1ab583
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ end

function find_in_path(name::String)
name[1] == '/' && return realpath(name)
is_file_readable(name) && return realpath(name)
base = name
if ends_with(name,".jl")
base = match(r"^(.*)\.jl$",name).captures[1]
Expand Down

0 comments on commit c1ab583

Please sign in to comment.