Bug 18052 - bash-specific конструкции в файле /etc/X11/Xsession
Summary: bash-specific конструкции в файле /etc/X11/Xsession
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: xinitrc (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-30 20:37 MSK by Slava Semushin
Modified: 2009-05-10 09:33 MSD (History)
3 users (show)

See Also:


Attachments
Fix bashisms (969 bytes, patch)
2008-11-30 20:37 MSK, Slava Semushin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Slava Semushin 2008-11-30 20:37:12 MSK
Created attachment 3108 [details]
Fix bashisms

В файле /etc/X11/Xsession используются bash-специфичный оператор для сравнения ==. Лучше вместо него использовать более стандартизированную версию -- =.

Патч в аттаче.
Comment 1 Dmitry V. Levin 2008-11-30 22:12:20 MSK
Башизмы, говорите?

$ head -n1 /etc/X11/Xsession 
#!/bin/bash -login
Comment 2 Alexey Gladkov 2008-11-30 22:14:11 MSK
Этот скрипт написан на bash и имеет полное право использовать его конструкции.
Comment 3 Dmitry V. Levin 2008-11-30 22:15:07 MSK
2.4.31-alt1-1-g8a5be9c
Comment 4 Slava Semushin 2008-12-01 08:51:25 MSK
(In reply to comment #1)
> Башизмы, говорите?
> 
> $ head -n1 /etc/X11/Xsession 
> #!/bin/bash -login

Слона-то я и не заметил :D