hush problem with the exec command
Martinb_ARM_NOMMU_KISSDVD
martinb at zeelandnet.nl
Sun Mar 2 16:39:30 PST 2008
If I try to use the exec from a script it will fail
Im not sure if this is a old bug because i never did use the hush as a
active shell
(I always did use lash 1.1)
to reproduce i did:
1- make a simple script named testscript
/paste
#!/bin/hush
export TVOFF=`echo hallo`
echo $TVOFF
/endpaste
Run this from prompt will run ok
If I run this with the exec my telnet is exiting
If I try to run strace from a other console and I attach I get:
--- SIGCHLD (Child exited) @ 0 (0) ---
read(3, "hallo\r\n", 4000) = 7
select(4, [0 3], [1], NULL, NULL) = 2 (in [3], out [1])
write(1, "hallo\r\n", 7) = 7
read(3, 0x1cdafdf, 3993) = -1 EIO (Input/output error)
write(1, "\r\n", 2) = 2
_exit(0) = ?
Process 66 detached
I repeat:
if i just run this from console with:
./testscript
its ok
If I run this from console with:
exec ./testscript
It will exit / fail
The problem for me is that i use the exec inside scripts and this is broken
I guess its related to the NOMMU
Would be nice if someone can give this a look, so I can finally get rid of
lash and the old hush
More information about the busybox
mailing list