His shell script only works with bash

>His shell script only works with bash

Attached: 1518686557674.jpg (218x218, 17K)

Other urls found in this thread:

werc.cat-v.org/
twitter.com/SFWRedditVideos

>using bash when python and perl exist

>using python and perl when ruby exists

>his shell script only works with rc

Attached: maxresdefault.jpg (1280x720, 71K)

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

Attached: 066593d8ca366f8442c09f0582104a0c5453f8a866733abb946404845fd81531.png (454x600, 347K)

werc.cat-v.org/

>his batch file only works with command.com

Attached: trashman.jpg (576x576, 135K)

>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

Attached: 15109331939270.jpg (1080x1331, 66K)

Good.
Snowflake shell hipsters BTFO

Actually, yes
t. Python dev

>slaves

Attached: triggered.jpg (1280x720, 92K)

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

Attached: breather3.jpg (160x200, 4K)

>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