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

'sh' alias should run bash in POSIX compat mode #17

Open
ztx-lyghters opened this issue Dec 21, 2023 · 3 comments
Open

'sh' alias should run bash in POSIX compat mode #17

ztx-lyghters opened this issue Dec 21, 2023 · 3 comments

Comments

@ztx-lyghters
Copy link

ztx-lyghters commented Dec 21, 2023

Hello. /bin/sh historically used to be (and continues to be on some distros) a POSIX or "Bourne" shell specifically, for this reason when bash executes shell script with a /bin/sh shebang, it enters "POSIX mode". Specifying "sh" as a language in the bot doesn't invoke such behavior and runs a standard bash instead of this.

The suggestion is for "sh" alias to run "bash --posix $@" instead. This would be very helpful to have.

@ztx-lyghters
Copy link
Author

@tusharsadhwani
Copy link
Owner

Interesting!

I'm wondering why does the backend itself doesn't do that. Maybe this should be an issue on piston itself?

If not, I'd be happy to look into this.

@ztx-lyghters
Copy link
Author

Thanks for considering this. I've never used Piston itself, I will have to investigate that.

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

No branches or pull requests

2 participants