[Bug 4135] Error running some shell scripts directly

bugzilla at busybox.net bugzilla at busybox.net
Thu Sep 15 10:58:07 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=4135

--- Comment #3 from Denys Vlasenko <vda.linux at googlemail.com>  ---
(In reply to comment #2)
> router at Ubuntu ~/busybox-1.19.2
> $ ./foo.sh
> This is foo.sh
> calling bar ...
> ./foo.sh: line 4: ./bar: not found
> Back to foo.sh
> router at Ubuntu ~/busybox-1.19.2
> $ ./bar
> ./ash: ./bar: not found
> router at Ubuntu ~/busybox-1.19.2
> $ exit
> router at Ubuntu ~/busybox-1.19.2
> $ 


Can't reproduce. I am getting:

/bin # ./foo.sh
This is foo.sh
calling bar ...
This is bar
Finished running bar
Back to foo.sh

If I do "chmod 644 bar", I am getting:

/bin # ./foo.sh
This is foo.sh
calling bar ...
./foo.sh: line 4: ./bar: Permission denied
Back to foo.sh

Thus, I am puzzled how you end up getting "./bar: not found".

Please,

(1) attach your .config file to this bug, and

(2) run "strace -oLOG -s999 -tt -f ./ash", run ./foo.sh under it, then exit the
shell and attach resulting LOG file to this bug.
(If you don't have strace tool, download one for your architecture from
http://landley.net/aboriginal/downloads/binaries/extras/)

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list