Can you still write Bash scripts and aliases in macos High Sierra?

Can you still write Bash scripts and aliases in macos High Sierra? If so HOW?

Posted on Dec 10, 2018 6:48 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 10, 2018 9:14 AM

You can still write Bash v3.2.57 scripts and assign aliases in your dot startup files (e.g. .bash_profile, .bashrc). I mentioned the Bash version because most of the examples of Bash syntax on the web are from those using Bash v4.n on Linux. Bash v4 unique features are not backwards compatible.


alias tt='open -a Textastic "$@"'

tt ~/Desktop/foo.py


Where Textastic is an advanced programmer's editor available from the Mac App Store.

Similar questions

5 replies
Question marked as Top-ranking reply

Dec 10, 2018 9:14 AM in response to richardc7

You can still write Bash v3.2.57 scripts and assign aliases in your dot startup files (e.g. .bash_profile, .bashrc). I mentioned the Bash version because most of the examples of Bash syntax on the web are from those using Bash v4.n on Linux. Bash v4 unique features are not backwards compatible.


alias tt='open -a Textastic "$@"'

tt ~/Desktop/foo.py


Where Textastic is an advanced programmer's editor available from the Mac App Store.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can you still write Bash scripts and aliases in macos High Sierra?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.