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

Fix shellescape to work on Tiger #197

Merged
merged 1 commit into from Jun 28, 2020
Merged

Conversation

ryandesign
Copy link
Contributor

Fix shellescape to work on Tiger

Closes: https://trac.macports.org/ticket/56626

The previous code relied on the fact that we use sh for system and sh is supposed to be a POSIX shell but on Tiger it isn't; Leopard was the first POSIX compliant Mac OS X version

@ryandesign
Copy link
Contributor Author

I chose the list of safe characters based on the chart shown here:

https://stackoverflow.com/questions/15783701/which-characters-need-to-be-escaped-when-using-bash#answer-27817504

The test had to be changed from echo to printf because echo would interpret some of the escaped characters.

I verified the test now passes on Tiger and High Sierra.

@neverpanic neverpanic merged commit 62e0767 into macports:master Jun 28, 2020
@ryandesign ryandesign deleted the shellescape branch June 28, 2020 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants