Bug 13038 - Башизм в init-скрипте
Summary: Башизм в init-скрипте
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: x11_autosetup (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: Anton V. Boyarshinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-05 15:19 MSD by Slava Semushin
Modified: 2009-05-10 09:33 MSD (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Slava Semushin 2007-10-05 15:19:06 MSD
В скрипте /etc/rc.d/init.d/x11_autosetup:

 30 stop() {
 31     if [ -h /etc/X11/xorg.conf ] && [ "`readlink /etc/X11/xorg.conf`" ==
"xorg.conf.auto" ];then

Для сравнения строк (очень) желательно использовать '=' вместо нестандартного
'==', который поддерживается только башем и некоторыми версиями ksh.
Comment 1 Slava Semushin 2007-10-12 12:22:50 MSD
Кажется, исправлено. (Сам скрипт не проверял, но видел, что ldv@ этот кусок
изменил, а boyarsh@, судя по всему, смержил эти изменения).

x11_autosetup - Automatic x11 setup using x11_autosetup and x11setupdrv
* Fri Oct 05 2007 Anton V. Boyarshinov <boyarsh@altlinux> 0.5-alt1
- major cleanup from ldv@
* Tue Oct 02 2007 Anton V. Boyarshinov <boyarsh@altlinux> 0.4-alt1

Антон, ау? Вы про багу хоть в курсе?