Opened 12 years ago

Closed 12 years ago

#1824 closed bug (fixed)

Can't open perl script

Reported by: kaliber Owned by: axeld
Priority: normal Milestone: R1
Component: System/runtime_loader Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

It's probably duplicate of ticket #1773, but I cannot add comment there (trac error).

Put test.pl in /boot/home/config/bin/test.pl:

#!/boot/home/config/bin/perl

from home directory try to run script:

~>test.pl
Can't open perl script "test.pl": No such file or directory

from home directory try to run:

~>/boot/home/config/bin/test.pl

and it works now...

Attachments (1)

arg0-fix.patch (2.7 KB ) - added by kaliber 12 years ago.
Proposed patch for bug #1824 and #1773

Download all attachments as: .zip

Change History (6)

comment:1 by stippi, 12 years ago

Does the script file have the executable bit set?

in reply to:  1 comment:2 by kaliber, 12 years ago

Replying to stippi:

Does the script file have the executable bit set?

Yes.

by kaliber, 12 years ago

Attachment: arg0-fix.patch added

Proposed patch for bug #1824 and #1773

comment:3 by kaliber, 12 years ago

I've added proposed patch for bug #1824 and #1773.

comment:4 by bonefish, 12 years ago

Thanks for the patch. I only had a quick look yet, but it basically looks OK (save for the argv[1] in load_image()). Unless someone else beats me to it, I'll have a closer look later and apply it.

comment:5 by korli, 12 years ago

Resolution: fixed
Status: newclosed

Applied patch in hrev24131. Tested only #1773.

Note: See TracTickets for help on using tickets.