Live data from Hacker News

Bash Pitfalls

bash.cumulonim.biz

1–10 of 55 posts

Re: Bash Pitfalls

#3

I have a mirror of this site. wooledge.org runs off of greycat's (#bash on freenode) home DSL connection: http://bash.cumulonim.biz/BashPitfalls.html

Thanks. I don't understand why people submit links with content that can't be accessed by more than a few users simultaneously.

Re: Bash Pitfalls

#5

I have a mirror of this site. wooledge.org runs off of greycat's (#bash on freenode) home DSL connection: http://bash.cumulonim.biz/BashPitfalls.html

Seriously? They can't find a better place to host a site like this here in 2013?

Re: Bash Pitfalls

#6
post #3

I have a mirror of this site. wooledge.org runs off of greycat's (#bash on freenode) home DSL connection: http://bash.cumulonim.biz/BashPitfalls.html

Thanks. I don't understand why people submit links with content that can't be accessed by more than a few users simultaneously.

Well it is the main reference but it won't sustain the "HN effect", thanks for the mirror link. I typically use http://wiki.bash-hackers.org/doku.php which also provides a mirror and some extras.

Re: Bash Pitfalls

#7
The Unix shell may be a highly powerful interactive programming environment, but it's sure hard to think of anything that comes anywhere close to sucking as badly. With the shell and the standard Unix commands, some things that are hard in other languages are easy, and most of the things that are easy in other languages are hard to impossible... I'd love to see a clean slate replacement for the shell that still feels Unix-like and retains most of its existing benefits.

(I suspect PowerShell would be a good environment to take design cues from or even port, but I've never used it so I can't say for sure.)

Re: Bash Pitfalls

#9
post #3

I have a mirror of this site. wooledge.org runs off of greycat's (#bash on freenode) home DSL connection: http://bash.cumulonim.biz/BashPitfalls.html

Thanks. I don't understand why people submit links with content that can't be accessed by more than a few users simultaneously.

How would one know this in advance?

Re: Bash Pitfalls

#10
Bash is for most things, one of the easier languages I have dealt with, being even beyond python, etc. That is though, for shell type scripting.

There's many problems with it, but the only one I've run into that keeps it from being more useful is that there are no multi dimensional arrays built-in. There are super hacky ways I have seen them implemented, but by default it's something I basically never am able to turn to when scripting in bash and have to turn to other languages, even when the particular task I was working with would be mostly simpler in bash.

That said, there are associative arrays in bash these days.

Post reply on HN