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

Pages: 1-4041-8081-

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: I HATE BBCODE 2012-11-01 10:19

Name: Anonymous 2012-11-01 10:29

He doesn't seem like a trustworthy person.

Name: Anonymous 2012-11-01 10:30

Bash is shit, but nothing is as shitty as the Windows shell commands.

Name: Anonymous 2012-11-01 10:32

>>4
at least cmd is better than powershell

Name: Anonymous 2012-11-01 10:32

Bash is FIOC


if [ expr ] ; then


see

Name: Anonymous 2012-11-01 10:36

Never trust a nigger to design shit, especially american niggers; they have no taste.

Name: Anonymous 2012-11-01 12:13

At least it's better than korn shell or fucking csh.

Name: Anonymous 2012-11-01 13:05

>>1
What a fucking disgusting furry nigger, no wonder the language is so shitty
He could as well call himself BearWolf Fox instead

Name: Anonymous 2012-11-01 15:31

ZSH IS FOR FAGGOTS

Name: mawk 2012-11-01 15:47

Was that I read? Some complaining about dynamic scope, and messy scheme of regular expressions?

At the least I hear that the have protections against:
:(){ :|: & };:

Name: Anonymous 2012-11-01 15:51

>>11
English, motherfucker, do you speak it?

Name: Anonymous 2012-11-01 16:10

>>8

ksh is amazing.

My face when I hear Linux users complain that it takes them over a second to get a prompt when they open an xterm.

Name: Anonymous 2012-11-01 16:11

>>11
how's scsh portability?  speed?  usability?  I'd like something better than bash...

Name: Anonymous 2012-11-01 16:12

just use perl

Name: Anonymous 2012-11-01 16:15

>>13
My face when
Stop. Please.

Name: Anonymous 2012-11-01 16:20

>>13
Back to le imagereddits, please.

Name: Anonymous 2012-11-01 17:07

i really want to learn bash. and VBS. and ruby.

Name: Anonymous 2012-11-01 17:10

I bet all the zsh hipsters would switch to bash is they knew it was written by a black guy.

Check your white programmer privilege /prog/.

Name: Anonymous 2012-11-01 18:16

>>19
Only Ahmed and Benito would, but they're using Windows XP anyway.

Name: Anonymous 2012-11-01 18:32

>>19
ksh is the hipster one. And I doubt they'd switch, because being GNUterd is worse than being accused of racism.

zsh is the shell that everyone criticizes in public for being too big (even though it's smaller than bash), but then secretly uses because it's vastly superior.

Name: Anonymous 2012-11-01 18:34

I hate dubs

Name: Anonymous 2012-11-01 18:35

>>21
Is it as idiosyncratic as sh/bash?  Is there a shell somewhere that doesn't have ass-backward syntax and extremely limited support for arrays and more complex data structures?  I'd like to use scsh, but I'm not sure how good it is.

Name: Anonymous 2012-11-01 18:41

>>23
just use perl or fioc

Name: Anonymous 2012-11-01 18:57

Is it as idiosyncratic as sh/bash?
Unfortunately, yes. It's syntax is based on Bourne shell syntax.

Is there a shell somewhere that doesn't have ass-backward syntax and extremely limited support for arrays and more complex data structures?
https://github.com/frytvm/XS

Name: Anonymous 2012-11-01 19:27

I feel like I'm the only person who uses the public domain Bourne shell, and whenever I tell people they always ask, ``Why not just use bash?''

Name: Anonymous 2012-11-01 20:47

Name: Anonymous 2012-11-01 23:20

abs() { echo ${@/-/}; }

$ abs 1 -1 0
1 1 0

Name: Anonymous 2012-11-01 23:57

>>13,21
The nice thing about ksh is that it knows when to stop.

The entire concept of "expansion" is the worst thing about shell languages. bash and zsh address this problem by... adding more types of expansion. That's some wonderful thinking right there.

ksh says, let's keep only the ugly stuff that Bourne compatibility requires us to have, and add new control constructs to so we can use as little of said ugly stuff as possible.  It's the only new shell language that has the decency to admit its limitations, and that's why I like it.

Name: Anonymous 2012-11-02 1:10

nice neckbeard

Name: Anonymous 2012-11-02 4:57

>>27
Results 1-10 of 37 for scsh

Name: Anonymous 2012-11-02 4:59

>>1
At the FSF, Fox authored GNU Bash, GNU Makeinfo, GNU Info, GNU Finger, and the readline and history libraries.
Somewhere deep inside I always knew all these abominations had to be the handiwork of a single individual.

Name: Anonymous 2012-11-02 5:03

>>12
In Latina narrareo. Anglum.

>>14,23
Stick with AWK and KSH93. You really do not need anything else. And scsh is still beta. There are lots of POSIX stuff still needed to be added. You can help although. And personally, I stick with low level stuff as much as possible, for every byte of redundancy.

Name: Anonymous 2012-11-02 5:12

Name: Anonymous 2012-11-02 6:05

>>29

Indeed.  ksh realises that a shell is just a shell, and doesn't need to include a TCP library and all sorts of bullshit.

>>33

This!  Rather than using a shitty bloated shell with half-assed programming features tacked on, just use a nice simple programming language that works and a nice simple shell that works.

awk

You guys will like this: some guy wrote a minimal LISP interpretor in awk!

http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/impl/awk/


$ awk -f walk walk.w numbers.w p -
-> (set 'ura '(lambda (x) (list 'you 'are 'a x)))
(lambda (x) (list (quote you) (quote are) (quote a) x))
-> (ura 'fag)
(you are a fag)
-> (ura '"good person")
(you are a good person)
->
-> (set 'kvprepend '(lambda (key val l) (cons (list key val) l)))
(lambda (key val l) (cons (list key val) l))
-> (set 'kvsearch '(lambda (key l) (cond
3>   ((eq key (caar l)) (cadar l))
3>   ((cdr l) (kvsearch key (cdr l)))
3> )))
(lambda (key l) (cond ((eq key (caar l)) (cadar l)) ((cdr l) (kvsearch key (cdr l)))))
-> (set 'kv (kvprepend 1 'one (kvprepend 2 'two (kvprepend 3 'three (kvprepend 4 'four () )))))
((1 one) (2 two) (3 three) (4 four))
-> (kvsearch 2 kv)
two
-> (kvsearch 5 kv)
()
-> (kvprepend 'lol 'wut kv)
((lol wut) (1 one) (2 two) (3 three) (4 four))
-> (kvsearch 'lol (kvprepend 'lol 'wut kv))
wut
-> ^d110 atoms, 1457 list cells.


This is the coolest thing ever!

Name: Anonymous 2012-11-02 7:11

>>35
nice

Name: Anonymous 2012-11-02 11:27

>>35
Someone once implemented a Lisp interpreter in brainfuck.

Name: Anonymous 2012-11-02 11:50

Guys, just use rc like all expert programmers do.

Name: Anonymous 2012-11-02 11:52

The problem is we sometimes have to deal with BASH no matter what.

Name: Anonymous 2012-11-02 13:09

>>37
https://code.google.com/p/zozotez/ ?
Not a very good Lisp interpreter, and not actually written in brainfuck. It's written in something called ``EBF'', and then compiled to brainfuck.

>>38
Or es or xs if you're stuck in the real world.

>>39
The only time I've ever had to deal with bash is stupid GNU configure scripts that have #!/bin/sh at the top and then use obvious bashisms, which break on any operating system that isn't batshit insane.

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?

Name: Anonymous 2012-11-05 14:24

Anyone who tries to take my general purpose computer or my photolithography equipment will meet the nasty end of my shotgun.

I FUCKING HATE YOU DIE IN A FIRE CRETIN.

Name: Anonymous 2012-11-05 14:26

>>80
That's me, but I'm truly going to shut up and I suggest everyone else does too because there is one hell of a Erlang programmer being the blackest black a nigger could ever be. His truly black and nigger and the best programmer I know.

Name: Anonymous 2012-11-05 20:41

>>78
> is really 1> (stdout), 2>&1 redirects fd 2 (stderr) into fd 1's stream. So if the program produces any output on stderr you need to redirect that as well, and this is how.

It's not important whether you redirect them separately to /dev/null, but if you want to capture both streams as one (into a file, say), you have to do it that way... and in that order last I checked.

Name: Anonymous 2012-11-06 5:20

>>83
Problem is, "&>" was supposed to do that in one single operation, as opposed to having to split them into two (">/dev/null" and "2>&1"). It's why that doesn't always work, that I don't get.

Name: Anonymous 2012-11-06 5:44

this thread is so full of simultaneous fail and insight, just like bash!

Name: Anonymous 2012-11-06 6:13

it was mentioned before in this thread, but it's still a fact that sort of eludes me. the parsing of " versus '. the programmatic escaping of quotes? these are things which bug me the most, especially when loops break lines on spaces. fucking bullshit.

Name: Anonymous 2012-11-06 12:29

>>84
No, &> is supposed to redirect only stderr.

Name: Anonymous 2012-11-06 12:49

>>87
Then why are &> and 2> typed as two different things?

Name: Anonymous 2012-11-06 15:19

>>86
Not a problem at all with perl's q and qq

>>87
because bash is shit

Name: Anonymous 2012-11-06 16:33

If Bash is so shitty, why hasn't /prog/ started a Bash replacement project yet?

Name: Anonymous 2012-11-06 16:34

If Shiitchan is so shitty, why hasn't /prog/ started a Shiitchan replacement project yet?

Name: Anonymous 2012-11-06 16:42

>>91
Literally everyone on /prog/ has at least one half-finished textboard or imageboard implementation somewhere on his hard drive.
Just look through people's Github accounts. There's dozens.

Name: Anonymous 2012-11-06 16:46

>>92
How would I know if they're /prog/riders?

Name: Anonymous 2012-11-06 16:48

>>93
Suitably self-absorbed riders with githubs should agree on a common signature to place in an agreed-upon place on their github profiles or projects.

Name: Anonymous 2012-11-06 17:09

>>94
when does le narwhal bacon? XD

Sorry, I heard that in a physics lecture and I realized it was a ``common signature'' to identify redditards in public place.

Name: Anonymous 2012-11-06 17:12

>>92
Show me one.

Name: Anonymous 2012-11-06 17:20

  #♦◘♦◘♦
//('  ・‿・)\\    hafjo read your Forritunarmálið Fjölnir Notendahandbók today?
  / | · „ · | \
    ╚  ╚

Name: Anonymous 2012-11-06 17:38

"GRUNNUR"

Name: Anonymous 2012-11-06 20:54

Good God, I didn't know bash was the work of a negro. Now I'm going to abandon it forever.

Name: Anonymous 2012-11-06 20:55

>>99
Same, I refuse to use niggerware.

Name: Anonymous 2012-11-06 20:57

>>100
I feel better using kikeware such as that developed by Stallman.

Name: Anonymous 2012-11-06 21:15

well, at least it's not charityware like vim.

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