Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid non-portable == for the test command #638

Closed

Conversation

Rhialto
Copy link
Contributor

@Rhialto Rhialto commented Oct 6, 2018

The test command doesn't accept == as operator. It should be a single = for portable use. The == is a gnu extension.

Note that the x-trick hasn't been needed for a long, long time. You can reliably write it with quotes:

if test "$gtk3" = yes; then

but I left that alone since it doesn't hurt other than being ugly.

The test command doesn't accept `==` as operator. It should be a single `=` for portable use. The `==` is a gnu extension.

Note that the x-trick hasn't been needed for a long, long time. You can reliably write it with quotes:
```
if test "$gtk3" = yes; then
```
but I left that alone since it doesn't hurt other than being ugly.
@caclark
Copy link
Collaborator

caclark commented Oct 7, 2018

@caclark caclark closed this Oct 7, 2018
mowgli pushed a commit that referenced this pull request Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants