Slashdot Log In
Bash 3.0 Released
Posted by
michael
on Thu Jul 29, 2004 10:23 AM
from the hallelujah-bash-is-risen dept.
from the hallelujah-bash-is-risen dept.
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."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
I'm still waiting for a feature (Score:4, Funny)
Re:I'm still waiting for a feature (Score:4, Insightful)
There is. Try zenity.
Parent
Re:I'm still waiting for a feature (Score:5, Funny)
Zenity lets you display Gtk+ dialog boxes from the command line and through shell scripts. It is similar to gdialog, but is intended to be saner. It comes from the same family as dialog, Xdialog, and cdialog, but it surpasses those projects by having a cooler name.
Parent
Re:I'm still waiting for a feature (Score:4, Funny)
Parent
Re:I'm still waiting for a feature (Score:5, Funny)
Parent
First "zsh rules" post! (Score:5, Interesting)
Re:First "zsh rules" post! (Score:5, Funny)
Parent
Re:First "zsh rules" post! (Score:5, Informative)
The zsh line editor get's totally confused if you type for example an umlaut and backspace over it.
And since my native language uses umlauts, and I need a UTF-8 environment for work, I had to go back to bash. Unfortunately...
Parent
Re:First "zsh rules" post! (Score:5, Informative)
You can match file types: e.g. *(@) will get you symlinks. *(U) gets files owned by you.
Syntax for alternation is a lot easier. No @(this|that) or !(*.f). Instead, it is (this|that) and ^*.f
Next point is completion. It includes a vast range of definitions so completion works well for lots of commands. The completion system handles completing parts of words so it better handles user@host completion. You get descriptions with completion match listings. Completion also has a really powerful context sensitive configuration system so you can make it work the way you like.
It has modules. For running a simple shell script it will actually use less space than bash because it doesn't need to load the line editor and other interactive related code into memory.
There is much much more. It takes a while to learn everything but if you just enable the completion functions (autoload -U compinit; compinit) you'll find it better than bash or tcsh from day 1.
Parent
Re:First "zsh rules" post! (Score:5, Informative)
Bash is a good shell, and I have nothing bad to say about it. However, zsh seems to have been designed from the ground up by power users and for power users. I absolutely love it and everyone that I've given a example config file to (to get them running with little hassle) has permanently switched.
Parent
Re:First "zsh rules" post! (Score:5, Informative)
As I said in another post, a big side effect is that zsh's completions seem to be much faster than bash's. That alone is worth the price of admission for me.
Parent
A new version? (Score:5, Interesting)
Dear Apple haters... (Score:5, Informative)
Several bug fixes for POSIX compliance came in from Apple; their assistance is appreciated.
It looks like Apple is giving back to the community, and to a fundamental tool.
To the parent: I'm in the same boat. I thought bash 3?? What is there to add?? Looks like multibyte char support (sorry, I'm are a dum Amer'kin).
-truth
Parent
Re:Dear Apple haters... (Score:5, Informative)
Apple has done numerous fixes, not just on BASH.
Sun (disclaimer: for whom I work) has done -tons- of work on GNOME, Mozilla and don't forget Open Office (just to name a few).
IBM works on many projects and gives back
All the distro makers like Red Hat, Novell, etc give back tons.
Each of those companies pay engineers to fix pieces not done in Open Source projects as well as to extend them for their customers. The patches are covered under GPL just like the main code, and these companies know it and yet knowingly dedicate serious money and hours to these projects. And then they satisfy the GPL by putting them out on source CDs or submitting them back to the main projects.
The big problem for getting submitted code accepted is that these companies are usually fixing and developing on a codebase that is aging. For instance, Sun did numerous I18N fixes for GNOME 2.6, but by the time they were ready the main GNOME organization had moved on to 2.8. That means there is a disconnect between the two and the changes have to be ported forward before they will hit the main code branch. The same problem can happen with kernel patches and just about any other codebase that changes versions so quickly.
Sorry, you were doing the good thing and pointing out Apple's contributions. But so many people think these companies violate the GPL (in spirit if not in law) when they are very large contributors to open source. Sure, some do, and the community usually find out about it and shame them into minimal compliance (Linksys and Sveasoft come to mind after my delving into alternate WRT54G firmwares last night), but generally speaking the big companies have been a good part of the community.
Parent
once upon a time... (Score:5, Informative)
-truth
Parent
On the list of changes: (Score:5, Funny)
What are these, I wonder? Something along the lines of changing the prompt to always display [litigious@bastards]$, perhaps?
Re:On the list of changes: (Score:4, Insightful)
I'm wondering why it's in the "LINUX" section of
Parent
Re:On the list of changes: (Score:5, Informative)
bash has been around since 1989 (according to copywrite on man page). Linux 1.0 came around 5 years later.
The editors should know better, unless they're intentionally trying to piss off RMS
Parent
Neat (Score:5, Interesting)
Re:Neat (Score:5, Funny)
(It's a shell, it's not susposed to be exciting)
Parent
Re:Neat (Score:5, Funny)
Pfft... I thought geeks browsed Slashdot!
Parent
Re:Neat (Score:5, Funny)
Real geeks do browse /.
Only lusers post.
Oh, wait...damn.
Parent
Re:Neat (Score:5, Funny)
Parent
Re:Neat (Score:5, Informative)
Unless you have scripts which used the old slightly dubious (but still not bad) internationalisation then you should notice no differences at all. There are a couple of really, really stupid looking scripts which now produce something different, but in almost every single case the new answer is I'm sure what everyone expected to appear before
Parent
Re:Neat (Score:5, Informative)
Parent
Re:Neat (Score:5, Funny)
This is so going to suck. If I get an error message that I'm unfamiliar with I'll plug it into google. Even if the hit is in a language I don't understand I can usually work out what a solution to my problem may be by looking at the command sequences posted in replies.
Now I'll lose that ability just because a bunch of whiners (the rest of the world) want error messages in *their* language. That's just not fair, as it doesn't benefit me.
I propose an immediate reversal of the i18n changes introduced into Bash 3.0. Who's with my jingoistic ass?
Parent
Re:Neat (Score:4, Funny)
Does it get more exciting then that?
-Peter
Parent
Re:Neat (Score:5, Funny)
seq 1 30 | xargs -i wget http://pr0nsite.com/image{}.jpg
Not that I'd try this or anything... no...
I do want to get a T-Shirt made:
Real geeks download their pr0n with one line shell-scripts.
Parent
Not much changed (Score:5, Insightful)
Apple helping out (Score:5, Interesting)
It's nice to see yet more contributions from Apple to the OSS community.
Re:Apple helping out (Score:5, Insightful)
Right on, brother. (This is not bashing apple before i get started!) They have done something that no one else in the *nix world has done: shit-hot gui. People can blather about this and that, but to deny that Apple has created one of the most user-friendly, beautiful, slick gui's for *nix is crazy. I'd like to continue seeing Apple release more help to OSS. Keep the real money makers to themselves (for now), but allow more dev's to release usefull changes back to the community that helped build it ya know?
You are 100% correct that it's nice to see them making another move like this...even if it was a lil' one
Parent
Movie Tie-in (Score:5, Funny)
It's...it's... (Score:5, Funny)
When are they going to upgrade MY shell? (Score:5, Funny)
Yeah, Bash 3.0 is great and all, but when are the bash people going to upgrade rbash? Man, I can't do anything with that shell!
Re:When are they going to upgrade MY shell? (Score:4, Insightful)
Parent
Warning, the above is a sad unix joke! (Score:5, Funny)
Parent
POSIX Compliance issues. (Score:5, Informative)
http://bugs.gentoo.org/show_bug.cgi?id=58703 [gentoo.org]
Just a simple move towards compliance breaks most of their scripts, so they've had to patch it out.
Lovely.
Re:POSIX Compliance issues. (Score:5, Informative)
Parent
MSH (Score:4, Funny)
I wonder how this will get modded?
POSIX (Score:5, Funny)
Then I looked through the POSIX spec, and sure enough I found this section, which explained things:
POSIX section 23.4.18 (SHELL):
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:Just wondering... (Score:5, Informative)
Bash developers have different priorities.
Bash became the default primarily because it is GNU.
Zsh has some ugly but powerful features like nested expansions. The two areas where bash is better than zsh is multibyte support and POSIX compliance. Much of that was contributed by IBM and Apple respectively. But if you use the shell a lot, you'll find zsh does a lot of things better. The completion is amazing. And when it isn't emulating sh/posix, it fixes some of the broken design decisions (like word splitting of variables) which saves you from doing stupid things.
The FSF actually does development in a very closed manner when it can (the gcc egcs split was partly because of this). Bash is a good example of this. That perhaps a good thing because it is probably good that bash doesn't get some of zsh's nasty (but powerful) features. And if zsh didn't exist, bash might have been forked by now. If you care about your shell, you'll find much more of a community on the zsh lists than the spam filled bug-bash list. You can't even get at alpha releases of bash without being one of the chosen few.
Parent
Breaks Gentoo (Score:4, Informative)
History timestamps! (Score:5, Informative)
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:People still use a shell for Linux? (Score:5, Informative)
Everything else, I do in emacs...
Parent
Re:People still use a shell for Linux? (Score:5, Funny)
Parent
Re:People still use a shell for Linux? (Score:4, Insightful)
Parent
Re:People still use a shell for Linux? (Score:4, Insightful)
When you run a binary from the shell are you ever sure what files it's accessing?
If you log it, sure -- but there are tools to do that in the GUI, too.
Parent
Re:bash = "embrace and extend" proprietary crap (Score:5, Insightful)
Seems like an odd word to use to describe free software. Try not to lip-sync to the jargon, dude.
Parent