reopen 573401 severity 573401 important title 573401 bashizm in cronscript: now dash is default shell in debian found 573401 0.9.9-5 thanks
Today I've upgraded sphinxsearch and found another problem in the same place. Now It spams me by such mails: ----- Forwarded message from Cron Daemon <r...@uvw.ru> ----- Date: Sat, 15 May 2010 00:00:01 +0400 From: Cron Daemon <r...@uvw.ru> To: r...@apache.rbscorp.ru Subject: Cron <r...@apache> . /etc/default/sphinxsearch && [ "$START" == "yes" ] && [ -x /usr/bin/indexer ] && /usr/bin/indexer --quiet --rotate --all (failed) command failed with exit status 2 [: 11: no: unexpected operator ----- End forwarded message ----- Now dash is used as default shell and it can't parse such instructions: $ bash -c '. /etc/default/sphinxsearch && [ "$START" == "yes" ]' $ dash -c '. /etc/default/sphinxsearch && [ "$START" == "yes" ]' [: 11: no: unexpected operator $ sh -c '. /etc/default/sphinxsearch && [ "$START" == "yes" ]' [: 11: no: unexpected operator $ ls -l `which sh` lrwxrwxrwx 1 root root 4 Мар 19 10:25 /bin/sh -> dash -- ... mpd is off . ''`. Dmitry E. Oboukhov : :’ : email: un...@debian.org jabber://un...@uvw.ru `. `~’ GPGKey: 1024D / F8E26537 2006-11-21 `- 1B23 D4F8 8EC0 D902 0555 E438 AB8C 00CF F8E2 6537
signature.asc
Description: Digital signature