>His shell script only works with bash
His shell script only works with bash
Other urls found in this thread:
>using bash when python and perl exist
>using python and perl when ruby exists
>his shell script only works with rc
I've never seen that happen
reinventing the wheel in Python every time you want to do something bash already does in the best possible way? nah
there's obv a difference between scripting and... everything else
>His shell script doesn't work in bash
>his batch file only works with command.com
>open sores
>anything but powershell
I detect a wirus
>the TRash shell
That's nothing OP. There are people who unironically write zsh scripts.
>using ruby when NODE exists
>using meme languages for automation when c & slaves exist
>His shell script works
Good.
Snowflake shell hipsters BTFO
Actually, yes
t. Python dev
>slaves
I just start all mine with
#! /bin/bash
So yeah they only works with bash, but they don't pretend otherwise. It makes a lot more sense than trying to write a polyglot script that works with a dozen different shells.
Exactly which systems are you using which
>you need to run shell scripts on
>don't have bash available
?
>using C and slaves when systemd exists
Systemd is trash
>his script doesn't start with
what's wrong with that?
zsh is superior in literally every conceivable way outside of installation base.
you're trash
then why isnt it the default on most distros? checkmate
because most people don't even know enough of bash to even know why it's shit.
printf -v x 'string\0ops bash uses cstrings because it is garbage'; echo $x
x | y | read -r
echo "$REPLY"
# oops, have to use shopt -s lastpipe because bash subshells the last side of the pipe.
I could literally go on all day of everything zsh does better than bash. hell the fact that zsh does not word split variable expansions by default should be enough.
>I could literally go on all day of everything zsh does better than bash.
No you couldn't.
the other reason is people depend on bash specific features that suck complete ass. like mapfile vs "${(f)"$(< file)"}", or their flavor of expansions for things like shell safe quoting, "${x@Q}" vs "${(q)x}"
anonymous functions (more for scoping though): (){ ... } args ...
partial directory completion: /h/u/s -> /home/user/something
better autocomplete
nested expansions "${${x%%trim-back}##trim-front}"
floating point math and basic math functions.
literally so many.
>literally so many.
5
#! /bin/sh
your a moron. there are simply too many to list and obviously your a shell brainlet anyhow.
>your a moron
Not an argument.
>there are simply too many to list
You're lying.
>Doesn't realise Bash is the lowest common denominator
>Comes OOB
>Meanwhile zsh is nowhere to be found.
you're trash
>His python script only works with python 3
you're trash
trash, you are
>I'm too retarded to port the script I stole
>I'm too retarded to write a portable script in the first place
Stop stealing.
>I'm too retarded to add a shebang to the top of the script I stole
Working on a project full of csh scripts recently and its just torture even compared to bash.
Fuck portability. I only support GNU/Linux.
Reminder to use \e instead of \033, it makes macfags MAD. HAHAHA
Python 2 is on life support