|
ash bug (was: BusyBox 1.0.0-pre2 released): msg#00256linux.busybox
Hello, the following small script shows a bug in 1.0.0-pre2 ash. When using set -x (for debugging) and redirection of stderr, ash somehow prints the debug message into the wrong file. It looks like ash does the redirection too early. Script: #! /bin/sh exec 2> bug.log set -x echo foo > echo.log 2>&1 set +x echo "bug-log:" cat bug.log echo echo "echo.log" cat echo.log busybox ash: # sh bug.sh bug-log: + set +x echo.log + echo foo foo bash: /home/jw5> sh bug.sh bug-log: + echo foo + set +x echo.log foo regards, Jean |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: patch to login, dmesg and obscure: 00256, Vladimir N. Oleynik |
|---|---|
| Next by Date: | Re: dpkg usage: invalid ar header: 00256, Glenn McGrath |
| Previous by Thread: | BusyBox 1.0.0-pre2 releasedi: 00256, Erik Andersen |
| Next by Thread: | Re: ash bug: 00256, Vladimir N. Oleynik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |