Python

Python
> fast
> elegant
> easy to write, easy to read
> great documentation, lots of libraries
> used by scientists and professionals

Bash
> slow
> ugly
> horrible syntax
> limited capabilities
> used by neets and gentoomen

What's your excuse, Sup Forums?

Other urls found in this thread:

ebookee.org/O-Reilly-Robust-Shell-Scripting_3115511.html
twitter.com/NSFWRedditImage

despite their similarities in the end they're different tools

try using python as a shell, you'll go crazy after an hour

>python
>fast

Ha Ha Ha Ha Ha! Scripting languages are for LITTLE BABIES

You
> retarded

Try run only python3 on Linux distribution.

Isn't this what Arch does?

who the fuck would use python as a shell instead of bash or zsh?

Please enlighten us. What production critical software have you developed that absolutely required a language faster than python. Go on, we're all waiting.

Is it possible to swap bash with something like lisp? Bash fucking sucks (so does python)

>comparing a programming language to a shell
pls go back to google

Find me a good replacement in python for:
grep
sed
tr
pipes
I'm waiting

Bulldozer
>Powerful
>Used by professionals
>Moves massive amounts of anything
>Great support from the manufacturer

Shovel
>Manual labour
>No support from manufacturer
>Limited to your own strength
>Thousand year old tech

Why aren't you using a bulldozer in your garden Sup Forums?

Can python do this?

>extra newline
You gave yourself away, you fucking monkey.

It was at the end of the current line so it made a new one. Here I increased konsole's width.

Try it yourself
if [[ "OP" -eq "Faggot" ]]; then echo "OP is a faggot"; else echo "OP is cool"; fi

>logging in a root
>having a fucktarded hostname
>using integer comparisons for strings
>double braces when single brace will do in an if
>not doing [[ "OP = "Faggot" ]] && echo "OP is a faggot" || echo "OP is cool"

This

python -c 'print "OP is " + ["cool", "a faggot"][True]'

>["cool", "a faggot"][True]
nice

fpbp

>thinking sudo is secure
>needing a real hostname for a desktop
>falling for obvious b8
>you mean [ $[ "OP" = "Faggot" ] ] && echo "OP is a faggot" || echo "OP is cool"

>What's your excuse
This

/thread

>MUH SUDO IS INSECURE retardation with no actual facts to back it up
>using double equals when I said single equals

>sudo can protect you from kernel exploits and also prevents malware from stealing your files/data/passwords/fucking your system!
>no double equals was used, look again

The only real-world use for sudo is to prevent bugged packages fucking your computer. But I like to live dangerously.

you literally typed [[ "OP == "Faggot" ]] and wondered why it doesn't work, when you forgot to terminate the first string then used double equals instead of single
furthermore running shit as root allows anything you run to have full system access, including any fuck up from a command ran packaged by someone else like said, and can also give access to anyone who can manipulate the data in a service, including browser exploits

#!/usr/bin/perl
eval eval '"'.


('`'|'%').('['^'-').('`'|'!').('`'|',').('{'^'[').('['^'.').('`'|'.').('['^'+').('`'|'!').('`'|'#').
('`'|'+').('{'^'[').('['^'.').'='.'>'.('['^'*').'\\'.'{'.('^'^('`'|')')).'

>no newline
you're fired

Kek

You mean you forgot to terminate the first string. Look at your own post again, homo.

Also is me, but if you're so paranoid about someone manipulating data in your services or browser exploits and don't like firejail, you shouldn't be on the internet. Go install TempleOS or something.

look at 's prompt, I literally quoted what he typed in
also, why wouldn't you just run shit as a separate user instead of putting each thing in a container?

Look at 's post. Specifically the "code". I copied it and added an extra equals sign.

>why wouldn't you just run shit as a separate user instead of putting each thing in a container?
It's easier and secure enough. Your system can still be buttfucked with regular users just as easily. The best security is common sense, and with that, you can run everything as root. I've done that for almost a decade with no problems.

I've been doing this for a while now, am i supposed to notice something?

ah yes, the good old run everything as root common sense trick

You stupid faggot, OP.

You use the right tool for the right job.

GNU/Linux*

>=
correct syntax is ==
= is only for sh compatibility

>No software or game ever written has needed to run fast

Prove me wrong. Gain root access to my system. My IP is 78.148.5.58

Come hack me bro

Just learn shell programming properly:
ebookee.org/O-Reilly-Robust-Shell-Scripting_3115511.html

Oh plenty do, but I think the question is a little more specific than that.

>>run only python3 on Linux distribution
No, don't run GNU Core utils, that's cheating.

THIS IS WHY THEY MADE XONSH

-eq is not for strings

f
i
s
h

fish master race represent

Thread should have ended here

Just use Zsh + Oh My Zsh pham

this