Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I HATE BASH

Name: Anonymous 2012-11-01 10:18

It's so shit. Shittier than PHP by at least 10 orders of magnitude.

Link related, it's the nigger who wrote it:
http://en.wikipedia.org/wiki/Brian_Fox_(computer_programmer)

Name: Anonymous 2012-11-02 13:17

>>40
xs
The syntax is irregular, and getting used to bash's retardedness already wasted too much of my time.  I want a Lisp with constructs that help doing shell scripting stuff.  Something like scsh but that isn't shit.  I suppose I could write my own in over 9000 hours in Scheme inb4 back to /b/, >mfw I've been here since 2006, but I have better things to do.

Name: Anonymous 2012-11-02 13:59

#!/usr/bin/rdmd

Name: Anonymous 2012-11-02 14:44

>>41
>mfw
le epic meme reddit/b/ro XDDDDDDDDDDDDDDD

Name: Anonymous 2012-11-02 14:48

I HATE DUBZ

Name: Anonymous 2012-11-02 14:53

>>35
But ksh does include a TCP library and floating-point math and all of that, at least if you mean the real David Korn one and not pdksh.

Name: Anonymous 2012-11-02 15:59

Name: Anonymous 2012-11-03 6:15

>>39
Were in Earth have you worked? There's at the least awk and dash on most systems that has bash. I dunno one thing that you cannot do in awk and ksh93 for server scripting that bash is \\requiredǁ.

And like I said, personally I use low level stuff when I can. Make my own daemons and mini binary DBs. Do near tcp.h configurations, and get done with it.

>>45
mksh

>>46
duh

Name: Anonymous 2012-11-03 9:38

``rc!''

Name: Anonymous 2012-11-03 10:02

What actually even does rc even mean?!

Name: Anonymous 2012-11-03 10:10

>>49
http://en.wikipedia.org/wiki/Rc

Come on Anon! Get your Google out!

Name: Anonymous 2012-11-03 10:13

>>50
Please don't call me ``anon''. It's very debilitating.
Though your link was to the wrong place (It's insanely clear that I meant .shrc and friends I'm not even joking), I now know the answer, and I thank you from the bottom of my anus.

Name: Anonymous 2012-11-03 10:53

fucking cunts. why can't they name it something meaningful? rc? what in the fucking goddam cunt is r motherfucking c?

Name: Anonymous 2012-11-03 10:55

>>49,52
run commands

Name: Anonymous 2012-11-03 10:56

100% LOGIC!

Name: Anonymous 2012-11-03 11:36

Here's another reason why Unix and Bash is retarded:


$ sudo printf "foo" >/etc/file
bash: /etc/file: Permission denied


The fuck was that? I'm fucking sudo you fucking twat. I don't care what goes on underneath, you retarded redirection shit.

Name: Anonymous 2012-11-03 11:48

>>55
$man sudo
read the manual first fucking ignorant, also check /etc/sudoers

Name: Anonymous 2012-11-03 11:58

>>55
su -c 'printf "foo" > /etc/file'
You're calling printf as root and doing the redirection as a normal user.

Name: Anonymous 2012-11-03 12:43

>>55
Holy shit, most retarded post ITT. This takes the cake.

Name: Anonymous 2012-11-03 13:05

>>56,57,58

It doesn't matter a bit if the manual says invoking sudo will penetrate your mom's arse, you twat. It violates basic UI principles.

You've been fucked by Richie, Thompson, et al. for far too long.

Name: Anonymous 2012-11-03 13:07

>>56

Fucking twat, I know what the error is, that doesn't make it less retarded.

Name: Anonymous 2012-11-03 13:57

>>58
You have Richie's rotting penis up your arse for far too long, ``faggot''

Name: Anonymous 2012-11-03 14:10

>>59,60,61

It is better to have consistent semantics than semantics that bend in various directions for special circumstances, because no one will be able to remember the exceptions for every circumstance. If you can't handle this concept, then maybe you should not attempt to use a shell, and stick to using guis and flipping burgers. I think that is more cut out for you.

Name: Anonymous 2012-11-03 14:15

>>59
Richie and Thompson don't have anything to do with sudo. Coggeshall and Spencer wrote it, and the fact that its semantics don't mesh perfectly with the command line's is their fault.
It has exactly nothing to do with Unix; neither POSIX nor SUS mention it. That's like blaming Unix for emacs.

Name: Anonymous 2012-11-03 14:23

U MENA praising?

Name: Anonymous 2012-11-03 14:24

>>62
Except it's not a consistent semantics, hence you're the faggot.

Name: Anonymous 2012-11-03 14:31

>>65
sudo is a command and behaves as such. Now go scrub another mental burger you toilet fryer.

Name: Anonymous 2012-11-03 14:53

>>33
KSH93
─> ksh
$ variable="HAX      MY      ANUS"
$ echo $variable
HAX MY ANUS
$ exit


I fucking hate this ``feature''.

Name: Anonymous 2012-11-03 16:13

>>65
Are you stupid?
Semantics of a > b:
Run command a and save its output to file b
Semantics of sudo printf "foo" >/etc/file:
Run command sudo printf "foo" and save its output to file /etc/file
Sounds about as inconsistent as a tautology.

Name: Anonymous 2012-11-03 16:16

69 GET

Name: Anonymous 2012-11-03 16:34

>>67
$ echo "$variable"

Name: Anonymous 2012-11-03 17:49

>>70
I know, but why does the common case require extra typing?

Name: Anonymous 2012-11-03 18:17

>>71

It's a byproduct of the shell tokenising input for you.

The alternative is for each command to do its own tokenisation, but then you'd have all sorts of bullshit like needing to escape different sets of charactors for cp and rm.

Name: Anonymous 2012-11-03 18:17

>>71

It's a byproduct of the shell tokenising input for you.

The alternative is for each command to do its own tokenisation, but then you'd have all sorts of bullshit like needing to escape different sets of charactors for cp and rm.

Name: Anonymous 2012-11-04 8:46

bash$ links dis.4chan.org/prog
lol

Name: Anonymous 2012-11-04 11:37

>>55
i always end up doing echo whatever | sudo tee /etc/file. or sponge (from moreutils)

Name: Anonymous 2012-11-05 12:42

>>71
Sometimes you actually do need those whitespaces trimmed. Seems this is the least counter-intuitive way they could think of, or something...

Name: Anonymous 2012-11-05 12:50

>>52
Rebourne C shell

Name: Anonymous 2012-11-05 13:02

So then, if BASH sux so hard, anyone have a better way of doing this?

echo -n "Duplicates: "
diff -s "$1" "$2" >/dev/null 2>&1 && {
    echo "Yep.  Removing one."
    mv -f "$1" "$2" || echo "Write fail, WTF?"
} || echo "Nope."


One thing I don't get, though, is why you sometimes have to «>/dev/null 2>&1», instead of a straight «&>/dev/null»…

Name: Anonymous 2012-11-05 14:13

>>67,70-72,76
echo $variable
$variable is expanded, then its expansion is passed to echo. echo then sees three arguments HAX, MY, and ANUS, and then outputs them sequentially, with a space in between, because that's what it does.

Name: Anonymous 2012-11-05 14:18

Bash a nigger in my jewnicks. you feeling me?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List