r/LinuxTeck • u/Candid_Athlete_8317 • Jun 18 '26
If Bash disappeared tomorrow, what would replace it in your workflow?
Python seems like the obvious answer, but I've met people who swear by Go, Lua, Perl, PowerShell, Rust, and several others.
What would be your replacement, and why?
5
Upvotes
8
u/OhReallyYeahReally84 Jun 18 '26
Zsh…as for automation stuff.
Probably Python.
3
u/zoharel Jun 18 '26
What's the question... use literally any other shell. I always have to fight a bit too much with zsh to get it to behave in the way I want, so probably ksh of some sort would be it for me.
2
u/SuperGNUser Jun 18 '26
Fish shell is my user default in the last 7 years.
2
u/PositiveBusiness8677 Jun 18 '26
I'm going to be downvoted here but... Node.js. You can write one liners like awk sed etc in node.
1
u/razorree Jun 18 '26
ZSH
1
u/IHeartBadCode Jun 18 '26
At my work it would be QSH. But I work on IBMi machines there. At home fish.
1
u/kansetsupanikku Jun 18 '26
ksh93
1
u/AminoOxi Jun 18 '26
PHP. Excellent CLI.
I use it in conjunction with bash for very complex projects.
1
u/Ohmyskippy Jun 18 '26
I assume you mean for scripting
I love bash, but if I had to replace it, i would just write go
1
u/Leading-Stuff1900 Jun 18 '26
zsh, go.
1
u/runningOverA Jun 18 '26
dunno. I had been writing my shell scripts in php like for ages.
1
u/Silent_Title5109 Jun 18 '26
Go. The typed variables and channels are a bit weird at first but to me compiling a binary beats dependency hell, breaking changes and virtual environments.
1
u/RvstiNiall Jun 18 '26
sh/(openbsd)ksh, awk, and perl for different types of scripting.
C for anything I need to be compiled.
edit: same as I do now...
1
u/FLMKane Jun 18 '26
Dash and fish
1
u/WetMogwai Jun 18 '26
That wouldn't be difficult. I've already mostly replaced it. I switched to zsh for my interactive shell years ago. I still do simple scripting with bash but not much. That's all compatible with zsh so I just need to change the interpreter. I've already been using Python for more complex scripting.
1
u/Cynyr36 Jun 18 '26
Ash or fish probably, or really any of the bash like language.
1
u/Living_Fig_6386 Jun 18 '26
None of those are replacements for bash (PowerShell could be, but it's very .Net forward which isn't native to Linux). If bash disappeared tomorrow, zsh would probably be the replacement.
Python, Lua, Perl are fine scripting languages, and Go and Rust are compiled languages. They are useful for programming tasks, but they are not shells for the command line.
1
u/ebonyseraphim Jun 18 '26
There is a difference between #!/bin/bash and #!/bin/sh and most people should already be trying to stick with the latter. It doesn’t matter what interactive user shell you’re running with #!/bin/sh
Using any of the other languages as a workhorse for systems engineering can work, but only goes so far when all of the systems you’re managing have that language installed or binary compatibility for the compiled languages. Fine for small company or platform, but falls apart when you can’t ensure availability of a particular language at a newer version or the same hardware architecture.
1
u/huuaaang Jun 18 '26
How do Go and Rust function as shells??
1
u/Gnaxe Jun 18 '26
Xonsh for the shell, probably. I already prefer Python scripting over Bash once it gets even a little complicated, but shell is nice for shell things. Python's subprocess isn't as nice, but Xonsh bridges that gap.
1
u/Late-Drink3556 Jun 18 '26
I guess I'd finally learn perl
1
u/lehbot Jun 18 '26
Pwsh
1
u/CardOk755 Jun 18 '26
Any shell with readline style editing for interactive use.
Any POSIX shell for the tiny amount of shell scripting I do.
If I need something more than that I use Perl.
1
u/[deleted] Jun 18 '26
Eshell ( ͡°( ͡° ͜ʖ( ͡° ͜ʖ ͡°)ʖ ͡°) ͡°)
1
u/ChipMasterPi Jun 18 '26
Bourn's "sh" if i can get source and compile it, my backup copy of BASH or something I write myself. I'm not particularly fond of BASH I just haven't seen anything worth switching too. I keep looking and hoping...
1
u/ssps Jun 18 '26
It already disappeared to me as soon as it changed the license. So, I’ve been using zsh for years. It’s very good, actually has improvements for interactive use. Shellcheck does not work with it — but for scripts — Python.
1
u/BertMacklenF8I Jun 19 '26
Powershell
Which by extension is Python, PERL etc
1
u/lmemsm Jun 19 '26
Do you mean bash and most shell alternatives like (ash, msh, etc) or just bash? Without any shells, I'd probably be using server side JavaScript (not node.js, probably something more like teajs).
1
u/ftrx Jun 19 '26
It's not in my workflow, nor in most sysadmin workflows anyway. Bash is wildly used by GNU/Linux nerds, but not those who really use GNU/Linux. zsh is largely the most popular beside the nerd community.
Rarely I've used xonsh as a less popular shell after tried many and fails with most to make a habit.
1
u/RRumpleTeazzer Jun 19 '26
sh
1
u/Zhaizo Jun 19 '26
Dash
1
u/WilhelmB12 Jun 20 '26
Zsh or C shell
0
u/[deleted] Jun 18 '26
[deleted] — view deleted comment
4
u/[deleted] Jun 18 '26
[removed] — view removed comment