Bash 3.0 Released 507
qazwsx789 writes "The first public release of bash-3.0 is now available via ftp and from the usual GNU mirror sites. For the official release notes by the author, Chet Ramey, check his usenet post."
Get hold of portable property. -- Charles Dickens, "Great Expectations"
First "zsh rules" post! (Score:5, Interesting)
A new version? (Score:5, Interesting)
Neat (Score:5, Interesting)
Apple helping out (Score:5, Interesting)
It's nice to see yet more contributions from Apple to the OSS community.
Re:First "zsh rules" post! (Score:1, Interesting)
bash = "embrace and extend" proprietary crap (Score:2, Interesting)
I seriously hope they've fixed that bag. Since a lot of GNU/LNUX distros don't even ship with a real sh, but symlink to bash. Some random linux bozo makes a #!/bin/sh script thinking it will be portable, but bash (at least 2.x does) forgets to switch off some features when invoked as /bin/sh, so in the end you write a non-portable script. And listen, linux people, /bin/bash is not standard!
Alfred, tired of fixing stupid scripts that assume the whole world has bash in /bin.
Looks great, but prefer Ash for scripts (Score:3, Interesting)
Looks like a nice Unicode-savvy release that should help with dealing with international languages at the command line. And yay to Apple for giving back (again). When will people finally accept that Apple is indeed helping out the OSS community through GCC, bash, and other tools...?
Kind of off-topic, but for speed purposes in scripts that have to run fast, I find nothing better or more convenient than Ash, especially on systems where
Does anyone know any history on this shell? Is it a clone of the original bourne shell or of bash? I can't seem to find anything useful on Google
Re:Dear Apple haters... (Score:3, Interesting)
Just wondering... (Score:4, Interesting)
What is so hot about bash, e.g. compared to zsh?
Seriously, I'm not trying to start a flame war here. This is coming from a really long term zsh user because back when I was just starting unix and linux a fellow bearded unix guru told me something along the lines "go with zsh, it's the best" (thas was about -95). And I've never looked back, but now seing bash being the default shell in most distros I've began to wonder what's going on. Perhaps over the years bash overtook zsh or there are some hidden qualities in bash that I don't know about.
Anyone with some insight on _both_ shells would be greatly appreciated.
Re:When are they going to upgrade MY shell? (Score:2, Interesting)
Can arrow key history be like Matlab's? (Score:3, Interesting)
Any idea if this is possible?
Dara Parsavand
Re:Just wondering... (Score:3, Interesting)
It's the same reason IE is still the de-facto browser on the internet, for most people it came with the system. Also, if you jump around on lab machines or on other people's machine, more often than not they don't have zsh installed and you're forced to remember all of the bash syntax anyway. That said, I still use zsh for all of my machines, because the completion engine is smarter and I've got many k worth of
Re:People still use a shell for Linux? (Score:2, Interesting)
Re:Just wondering... (Score:2, Interesting)
Because you are not me (Score:4, Interesting)
You like using a GUI and I like using a terminal. We're two people with two preferred methods of interacting with our machines. Your way is superior - for you. My way is superior - for me. There is no point (or obligation) to argue about which is better, since "better" is not a well-ordered set in this case.
Really great feature ! (Score:5, Interesting)
[user@mitral user]$ echo $BASH_VERSION
2.05a.0(1)-release
[user@mitral user]$ a | b |cat
bash: a: command not found
bash: b: command not found
[user@mitral user]$ echo $?
0
[user@mitral bash-3.0]$ echo $BASH_VERSION
3.00.0(1)-release
[user@mitral bash-3.0]$ set -o pipefail
[user@mitral bash-3.0]$ a | b |cat
bash: a: command not found
bash: b: command not found
[user@mitral bash-3.0]$ echo $?
127
Feel the love!
Re:Neat (Score:2, Interesting)
Re:People still use a shell for Linux? (Score:3, Interesting)
Bad example. Using KDE, I click on my home directory icon, select the images I want to convert, right-click on one of them and pick Actions | Convert To | PNG.
This is just as quick, doesn't require you to memorise complicated syntax, and doesn't require filenames that follow a common pattern.
Er...it's not here! (Score:2, Interesting)
Can't seems to find it from ftp://ftp.cwru.edu/pub/bash, ftp://ftp.gnu.org/gnu/bash, nor from other mirrors.
The most updated version is still 2.05b, not even the patch to 3.0 is available...
That was the whole point. (Score:4, Interesting)
The plan was to introduce new features in sub-versions like
As opposed to most open source software, which releases x.0 as soon as it compiles, and only then starts working out the stability bugs.
No shell scripts are really portable! (Score:3, Interesting)
Portable shell scripts are probably more impeded when they use tools that aren't part of the shell & which aren't on the target system.
If you want true script portability, it is probably better to use something like perl. If you are concerned with writing short, simple scripts, shell scripts are fine. But not even sh is commonly interperated, & bash is VERY common, so bash isn't really an inappropriate choice.
Bash 4DOS Directory without CD (Score:3, Interesting)
http://mattwalsh.com/twiki/bin/view/Main/BashDire
The one 'hole' is that command completion is a bit weird for the first element of a directory...if you have a directory that starts with 'ls', and you type ls <TAB> it will complete with 'ls'. Still, I find it to be very useful.
Re:I want Motif and full compatibility with dtksh (Score:2, Interesting)
Actually, I think dtksh is the latest version of the Korn Shell around. Anybody know a more recent version?
I especially like things such as
>all.txt
for ((i=1;i> all.txt
done
It still p*sses me off that such a simple thing can't be done with ksh. (the default shell on many HP-UX/AIX/etc boxes.)
Features like the for loop above are mentioned in O'Reilly's Korn Shell book, but are not present in the version that's mostly available.
0.02
Matt