I am using Terminal on MacOS. My main concern is that I’m commonly seeing command lines starting with the ‘$’ sign. My command lines begins with a ‘%’ sign. Does this matter? If so, what is the reason?
Asked
Active
Viewed 1,714 times
0
-
1Stack Overflow is for programming questions. You might try asking on [Unix & Linux](https://unix.stackexchange.com/), [Ask Different](https://apple.stackexchange.com/), or [Super User](https://superuser.com/) instead. – John Kugelman Dec 13 '20 at 08:04
1 Answers
2
The reason is that bash is no longer the default shell in macos. The default shell is now zsh which has certain advantages, such as floating-point operators.
You may set the Terminal default shell back to bash if needed. It's path is simply /bin/bash
Richard Barber
- 5,257
- 2
- 15
- 26
-
1Along with the those certain advantages also come certain (shall we say...) dis.. .advantages too `:)` – David C. Rankin Dec 13 '20 at 08:47
-
A particularly good reason to always use the proper shebang when saving a script. – Richard Barber Dec 13 '20 at 09:02