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 640004 - test(1) does not have a == operator
test(1) does not have a == operator
Status: RESOLVED FIXED
Product: libdmapsharing
Classification: Other
Component: DAAP Client
git master
Other NetBSD
: Normal normal
: ---
Assigned To: W. Michael Petullo
W. Michael Petullo
Depends on:
Blocks:
 
 
Reported: 2011-01-19 22:31 UTC by Julio Merino
Modified: 2011-01-20 16:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix. (1.26 KB, application/octet-stream)
2011-01-19 22:31 UTC, Julio Merino
Details

Description Julio Merino 2011-01-19 22:31:18 UTC
Created attachment 178794 [details]
Proposed fix.

In NetBSD, and in several other operating systems, the test(1) command does NOT have a == operator. The == operator is a GNU extension and must be avoided in scripts intended to be portable.

The fix is to just use =, which is the standard equality operator defined by POSIX.  See attached patch.

(By the way: there does not seem to be a component to file bugs against "general" stuff; maybe you want to define one? ;-)
Comment 1 W. Michael Petullo 2011-01-20 15:19:45 UTC
This has now been addressed in Git master and LIBDMAPSHARING_2_2. Would you please test these changes?
Comment 2 Julio Merino 2011-01-20 16:43:22 UTC
Thanks for the quick reply.  Things look good from here.