After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685629 - portability: use "=" operator instead of "==" in shell scripts
portability: use "=" operator instead of "==" in shell scripts
Status: RESOLVED FIXED
Product: caribou
Classification: Applications
Component: default
git master
Other All
: Normal normal
: ---
Assigned To: caribou-maint
caribou-maint
Depends on:
Blocks:
 
 
Reported: 2012-10-06 21:33 UTC by Daiki Ueno
Modified: 2012-10-08 19:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
portability: use "=" operator instead of "==" in shell scripts (2.19 KB, patch)
2012-10-06 21:33 UTC, Daiki Ueno
committed Details | Review

Description Daiki Ueno 2012-10-06 21:33:29 UTC
--
Since commit c80067412ed9aa434f4bbe2aabed88a21b8cf71f, I get
the following error when running caribou from the command line:

/home/ueno/gnome/install/bin/caribou: 32: [: /home/ueno/gnome/install/bin: unexpected operator

See http://lintian.debian.org/tags/possible-bashism-in-maintainer-script.html
for details.
Comment 1 Daiki Ueno 2012-10-06 21:33:31 UTC
Created attachment 225962 [details] [review]
portability: use "=" operator instead of "==" in shell scripts

"==" operator is only available in bash but not in the SUSv3 or
POSIX shell specification.  This causes a problem with Debian's dash.
Comment 2 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-10-06 22:23:47 UTC
Review of attachment 225962 [details] [review]:

Seems ok.