this post was submitted on 31 Aug 2023
-13 points (30.3% liked)

Linux

47046 readers
2369 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
-13
Stop Using Bash (discuss.online)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

  • Use Oil Shell if you want a faster and more modern version of Bash that's compatible with it and offers more modern oil language.
  • Use Zsh if you want better extendability and more plugins.
  • Use Fish if you want perfect out of the box configuration and a more modern (and less verbose for most cases) scripting language.
  • Use Dash/Ash if you want better speed and full POSIX compliance (no extension, no unimplemented features).
  • Use Yash if you want better autocomplete but still faster than Bash.
  • Use Xonsh if you want an awesome Python-based scripting experience and very nice autocomplete.
  • Use Elvish if you want a more modern scripting language.
  • Or use anything. Any shell will be better than Bash. Bash is slow, not POSIX compliant, and doesn't offer Zsh/Fish level autocomplete.
you are viewing a single comment's thread
view the rest of the comments
[–] spongeborgcubepants 1 points 11 months ago

Still using bash occasionally while mainlining zsh, it's just one of the most ubiquitous shells out there.

I'd rephrase your post title to "Use whatever shell you like, but try not to write Bash scripts"

At least scripts you want others to use... and you are going to be very grateful in the future when you might switch shells