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."
Children begin by loving their parents. After a time they judge them. Rarely, if ever, do they forgive them. - Oscar Wilde
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.
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.
Re:I'm still waiting for a feature (Score:4, Funny)
Re:I'm still waiting for a feature (Score:3, Funny)
Re:I'm still waiting for a feature (Score:5, Funny)
and then... (Score:2)
Re:I'm still waiting for a feature (Score:3, Informative)
Try gnome-terminal, it's what I'm using. Apart from being a bit unstable, it works fine.
I sometimes also use a combination of VNC and Xterm. Not as pretty or refined (doesn't have tabs) but otherwise fine.
It isn't and neither is the topic (Score:4, Informative)
The top catagory for this story is Announcements. It is also listed under the following catagories: GNU, Operating Systems, Unix, and lastly Linux.
First "zsh rules" post! (Score:5, Interesting)
Re:First "zsh rules" post! (Score:2, Informative)
Re:First "zsh rules" post! (Score:3, Insightful)
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.
bash completion getting better (Score:3, Informative)
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.
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.
Re:First "zsh rules" post! (Score:2, Informative)
As far as scripting is concerned, however, there's not a great deal of difference between zsh and bash, since the former is quite compatible with the latter.
Re:First "zsh rules" post! (Score:5, Funny)
That was a wild mod ride! (Score:4, Insightful)
My post started with +2 (cause I are 1337). Then I got an "Interesting", two "Overrated"s, a "Funny", and most recently a "Flamebait".
Come on, mods: can I have an "Insightful" and an "Underrated", too?
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...
Re:First "zsh rules" post! (Score:3, Informative)
READ THIS TOO (Score:3, Informative)
Re:First "zsh rules" post! (Score:3, Informative)
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
Re:Dear Apple haters... (Score:3, Interesting)
once upon a time... (Score:5, Informative)
-truth
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.
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
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
Re:On the list of changes: (Score:3, Informative)
Neat (Score:5, Interesting)
Re:Neat (Score:5, Funny)
(It's a shell, it's not susposed to be exciting)
Re:Neat (Score:5, Funny)
Pfft... I thought geeks browsed Slashdot!
Re:Neat (Score:5, Funny)
Real geeks do browse /.
Only lusers post.
Oh, wait...damn.
Re:Neat (Score:5, Funny)
Re:Neat (Score:4, Funny)
hrms, that's kinda catchy, aint it?
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
Re:Neat (Score:5, Informative)
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?
Re:Neat (Score:3, Informative)
The world could learn something from IBM here. In at least AIX and maybe other IBM operating systems, when you run a command and you get an error message, each error message has a unique ID which can be used to look up errors. Presumably these IDs are identical from one language to the next. IIRC they are four bytes, displayed in hex. They are probably unique only to a given executable these days, but might correspond to an AIX version (or other OS version) instead.
Re:Neat (Score:4, Funny)
Does it get more exciting then that?
-Peter
Re:Neat (Score:2, Informative)
wget http://porn.com/image{1..300}.jpg ?
Neat! (assuming I got the syntax right;)
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.
Re:Neat (Score:3, Funny)
I've been waiting to refine that command which I also never use.
Re:Neat (Score:2, Informative)
No. You are 15 months ago. Slackware 9 was succeeded by 9.1 on 2003-09-26 and 10 on 2004-06-23.
Not much changed (Score:5, Insightful)
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.
Bashing linux at slashdot (Score:2, Funny)
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
Movie Tie-in (Score:5, Funny)
It's...it's... (Score:5, Funny)
sco sco sco (Score:2, Funny)
I wonder.
if sco then blowup
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:2, Interesting)
Re:When are they going to upgrade MY shell? (Score:4, Insightful)
Warning, the above is a sad unix joke! (Score:5, Funny)
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.
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.
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 u
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:Looks great, but prefer Ash for scripts (Score:2)
Bourne Supremacy (Score:2, Funny)
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:3, Informative)
Re:POSIX Compliance issues. (Score:5, Informative)
MSH (Score:4, Funny)
I wonder how this will get modded?
I'm still waiting for... (Score:2)
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: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
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.
Breaks Gentoo (Score:4, Informative)
Re:Breaks Gentoo (Score:3, Funny)
Seriously? Damn. Ideologically, that's all the reason I need to upgrade!
Can arrow key history be like Matlab's? (Score:3, Interesting)
Any idea if this is possible?
Dara Parsavand
Re:Can arrow key history be like Matlab's? (Score:3, Informative)
"\e[A": history-search-backward
"\e[B": history-search-forward
^D
Bash isn't Linux (Score:3, Insightful)
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!
history (Score:3, Informative)
I read this as... (Score:4, Funny)
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.
Bash 3.0 (Score:3, Funny)
Better command completion from history (Score:3, Insightful)
If I have a command
foo bar baz
in my history, and I type
foo<TAB>
It complete that with the most recent command starting with "foo", and if I type
foo<UP>
it will cycle through the commands in history that start with "foo".
Re:People still use a shell for Linux? (Score:3, Insightful)
Why use a middleman when you have access to the source?
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.
Re:People still use a shell for Linux? (Score:2)
I've been using Linux for years, but - being a non-developer - I'm finding less and less reason to use the commandline (unless I'm using a CLI app such as lynx, bitchx or dopewars).
Re:People still use a shell for Linux? (Score:5, Informative)
Everything else, I do in emacs...
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.
Re:People still use a shell for Linux? (Score:3)
Ok, now do it every morning, at 3am, except on Sundays, and move corrupted images to the trashcan.
The point of a shell script is not to automate one-time generic tasks (that's what your context menu entry is for), but to automate one-time higly specific tasks (for which you can't reasonabily expect to have a predefined context menu entry) or unatt
Re:People still use a shell for Linux? (Score:2, Informative)
Re:People still use a shell for Linux? (Score:5, Funny)
Re:GUI possibilities (Score:4, Insightful)
But what if I want to do: You gonna write a custom GUI app for everything? The nice thing about the command line is that it's "language oriented" rather than "picture oriented." Rather than pointing at what I want and clicking, I tell the computer what I want using a language.
It's the same reason we don't code with a point & click interface (save for VB, but the point and click still only got you so far).
Re:GUI possibilities (Score:4, Insightful)
Please explain to me what precludes a GUI from offering an advanced search tool, in which you can open up a property info dialog for the results and do bulk permission/property changes for. (Hint: nothing stops this from happening.)
What you will end up with is a huge dialog with all kinds of checkboxes and text fields for the same things the command has. Making it more irritating and slower for the purpose of turning it into a shiny GUI, no thanks.
Even if you somehow make a magically really useful GUI widget that makes me enter all the necessary information in a completely natural and quick way and achieve perfection, I cannot believe you can do that automatically for every command ever. Which means there'll be a neat widget for some commands, and the command line for the rest.
That way lies hell. We have a perfectly good command line, thank you. If you want to make GUI frontends, perfectly fine, but don't expect us to use them.
Re:People still use a shell for Linux? (Score:4, Insightful)
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.
Re:Help me to like bash (Score:2)
Re:New features? (Score:3, Funny)