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

Correctly handle shell aliases #8

Open
frewsxcv opened this Issue Apr 2, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@frewsxcv
Owner

frewsxcv commented Apr 2, 2017

Haven't thought too hard about this, but given a command CMD that is passed to aa, it might be possible to just execute $SHELL -c 'CMD', but this assumes that $SHELL exists and that all shells have a -c parameter. Might be safer to just whitelist all the mainstream shells, and if it's not one of them, just execute the command directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment