Bash 3.0 Released
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."
← Back to Stories (view on slashdot.org)
DID I DO IT? LOLZ znegvanyq gjdgjfgjfgjfgjfgjfgjfgjfgjfgjfgjfgjfg
fp!
FP !
...a GTK front end
People still use Bash?
I thought only newbs used it.
Pretty Pictures!
Nice logo :-)
I've been waiting long for this day!
Bash was my first shell and I used it exclusively for years. One day, I'd read enough about zsh to force myself to give it a try. Oh how I loved thee, bash, but I won't be going back.
Dewey, what part of this looks like authorities should be involved?
1st post! squared!
Hell, I didn't even know bash was still in active development. It was always just bash to me, not bash-x.y.z. But then I guess I wouldn't notice the difference, really.
Switch back to Slashdot's D1 system.
bashbashbashbash just fun to say. wonder if theyll be updating the cs systems at school, or if they ever really update the cs systems at school...
What are these, I wonder? Something along the lines of changing the prompt to always display [litigious@bastards]$, perhaps?
Real Daleks don't climb stairs - they level the building.
Someone tell me why I want this. The Usenet post doesn't seem to explain what's so exciting about it, besides a bunch of boring bug-fixes, and some esoteric-sounding syntax changes.
I don't need no instructions to know how to rock!!!!
Ha! Gotcha! No, /. can't /. Google yet. :)
Doesn't seem to be much changed given the version number increase. [[ =~ ]] can match regexes and it can do zsh style {1..3} expansions. Improved multibyte support too. There were bigger changes in some of the 2.0x updates.
Can it make me coffee?
I'm writing these experiences with my sister and neighbors were how I remember them. Some of the dialog is added for readability, as most of it is forgotten now, but I remember the fear, anticipation, and lust that I felt at the time. Relating the incidents, helps bring it back to life. I knew that we were doing something that could get us in trouble, and the forbidden nature definitely added to the excitement for all of us.
The first experience with my sister was the very next day, after showing both my sisters some of my father's porn. At the time both my parents were outside in the yard, talking to a neighbor and Kathy was staying the night with a friend. Jackie asked if I could show her the books again.
We went to my room, where I pulled the books out from their hiding spot. She picked one with mostly pictures, and started asking questions again. I asked her what she thought about the pictures. She responded that they were strange, and that they made her feel naughty. She asked me if I ever played with my 'boner.'
I said "I wanted you and Kathy to play with it last night. Since you wouldn't, I did after I got back to my room. Do you ever play with yourself?"
She was reluctant. "Kathy played with herself last night, when she thought I was asleep."
I was surprised. "How did you know?"
"I heard her." After some prompting, Jackie admitted that she played with herself the previous night as well.
Pointing to a picture of a boy going down on a girl, she asked if my dick looked like that when it was hard. I asked if she wanted to see for herself. Our family was never very modest, and I know that she had seen me without my clothes before, but she had never seen me with a hardon.
After checking that my parents were still outside, we agreed to view each other close up. We both pulled our shorts and underwear down.
My sister sat on my bed and I stood directly in front of her. She took a few moments to observe and comment that it was weird, nothing like hers. Afterward, I spent some time investigating her. She had a small growth of hair, mostly coming in above her pussy.
Being the older brother, I took the initiative, and reached forward to spread her pussy lips. When I used my fingers to spread her labia, she spread her legs a little more and took a breath. I then ran my fingers over the length of her pussy.
She asked if she could touch my 'boner.' I asked her if she wanted to try some of the things that she saw in the book. "Yeah, I wanted to last night, but was too afraid after Kathy said no."
I showed her how to grasp my dick; she took to it like she had been doing it forever. While she played with me, I ran my fingers over her pussy. After a very short while I got scared that my parents would return, so I suggested that she take one of the books and the little light that I used to read in bed. She could could read it in the dark, until I snuck into her room.
She took the one that she had been looking through. It had many pictures of young people in different sexual positions. I don't honestly remember if the pictures were actually of kids, or of actors portraying kids. I just knew that Jackie was interested.
That night, I easily snuck into Jackie's room. We both slept with our doors closed, so if we were quiet, there was little risk of getting caught.
Jackie was awake, when I slid into her room. When I asked what she was doing, she pulled her covers back to show me the book, the flashlight, and that she was already naked.
She told me to take my shorts off. I kept my t-shirt on and sat between my sister's twin beds. I asked her that since she had the book, what did she want to try first. She hesitated. "You pick."
I had a girlfriend at the time, and we did some petting. I was keenly interested in knowing about oral sex, but was afraid that I would be taking things too fast, so I told her that I wanted to know how to touch a girl in a way that would get them most excited. At the time, I had no idea
Ever since I installed Fedora Core I've used the GNOME GUI exclusively with no problems and no descrease in functionality. It make administration of my Linux network a breeze.
Why type when you can just point and click?
I am looking at the title going a Linux bash headline on slashdot, now i must have been dreaming. But I am sure that i would not post that here, knowing i would loose all my karma in one stroke.
Bash your very own kernel toy Visit your nearest location today.
It's nice to see yet more contributions from Apple to the OSS community.
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
I had a steady B+ in my AI class until I failed the Turing test...
They should have called the movie Bourne Again.
The Bourne Again and Again and Again Shell! Again!
I have discovered a truly marvelous
**b. System-specific changes for: SCO Unix 3.2, Tandem.**
I wonder.
if sco then blowup
world was created 5 seconds before this post as it is.
...you can go full-circle, and use Cursed GTK!
pb Reply or e-mail; don't vaguely moderate.
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!
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.
How come this fails to excite me?
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
Hire a Linux system administrator, systems engineer,
I can't be the only one who snickers every time I see a commercial for this film. Think Geek used to have a "Bourne Again Believer" t-shirt but I think they dropped it. Maybe I am the only one.
It's hard to believe that's how Micronians are made. Why don't we see it right now by having you both kiss one another?
I still use tcsh (not for shell scripts, just interactively), essentially for a single feature. If someone can tell me how to do this in bash, I might try it again.
If you type a partial command and then press alt-p or esc-p, tcsh pulls up the most recent command in the history that matches what you typed. Not in the "!partialcmd" sense of executing something that matches, but pulling it up for editing on the command line.
Is there a key (or way to get a key) that does that in bash or not?
There's been an interesting little problem caused for people like Gentoo with the updates in bash 3.0.
http://bugs.gentoo.org/show_bug.cgi?id=58703
Just a simple move towards compliance breaks most of their scripts, so they've had to patch it out.
Lovely.
"How fine you look when dressed in rage."
Ha ha, you dorks, use MSH like a man!
:-o
I wonder how this will get modded?
Beware: In C++, your friends can see your privates!
Does anyone know if tab completion has been updated?
Specifically, the command-specific changes such as;
mount [press tab]
to see all available mount points (not just the current directory).
I know there are add-ins, though it would be good to know it's always there.
command.com-3.0. But I guess a more robust cmd.exe would do as well.
"THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
Then I looked through the POSIX spec, and sure enough I found this section, which explained things:
POSIX section 23.4.18 (SHELL):
But I'm confused. Isn't this supposed to be the second movie of the trilogy?
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.
1 Earth is warming, 2 It's us, 3 it's royally bad, 4 we need to take action NOW
Gentoo's various scripts rely on the fact that /bin/sh is usually symlinked to /bin/bash. With 3.0, when invoked as /bin/sh, bash behaves as it should for the first time, which caused some problems. (which are now fixed, by the way)
-truth
I had a steady B+ in my AI class until I failed the Turing test...
I read the announcement and it mentions "History traversal with arrow keys", but what I would really like doesn't seem to be mentioned (but perhaps it is possible with bash-2.05, I'm not much of a shell expert). In Matlab, the up-arrow key searches the history for commands that match all the characters on the line. No characters and it acts like a normal bash arrow, if "figure, plot" is at the beginning of the line, it will quickly scroll through all plotting commands that have been entered at the shell.
Any idea if this is possible?
Dara Parsavand
you can't use a GUI interface for ever thing(admin i mean). and switching between tasks is much easier with cli.for remote admin bash+screen+ssh is heaven. agreed. Point and click is easier but not always. I find cli is much easier when doing system administration(example samba, network issues).
Bash is a portable tool that existed long before Linux did. It is not specific or particular to Linux. So why in the world does this get posted under the category of Linux ?
...and unaBASHedly so, if I may say so!
Bash can now store timestamps in the history and save them to the history file. This alone is worth the upgrade for me. The option to erase duplicates is pretty nice too.
This story comes under category Linux, wonders why? As we know bash runs under all *nix :)
The important thing is not to stop questioning --Albert Einstein.
The completion ability of bash has been steadily improving. There is a nice script here that sets up a lot of good completion rules for bash.
Guys, I'm really so excited about this. I ran around proclaiming the news about bash-3.0 in my department. Not too many people got excited (I work in Psychology) but check this out: [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!
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.
Dewey, what part of this looks like authorities should be involved?
Guys, I'm really so excited about this. I ran around proclaiming the news about bash-3.0 in my department. Not too many people got excited (I work in Psychology) but check this out:
[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!
Of course, your problem is that you are assuming that the very nature of a GUI is limited to what you've personally encountered.
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.)
Now if someone would make a Bush 2.0 release I'd really be exited.
Failing to learn from history dooms you to repeat it.
timestamped history sounds like a useful auditing feature....
GO KSH!
-- Bryan
...Bush 3.0. I was wondering why the last two incarnations of your US president were so god-awful. ;)
yeah...this IS essentially the "Bourne Supremacy" ;) and hopefully the next release will be the "Bourne Ultimate-um" ;)
Find a job you like and you will never work a day in your life.
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...
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?
Dewey, what part of this looks like authorities should be involved?
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.
You cannot apply a technological solution to a sociological problem. (Edwards' Law)
Cursed GTK is a text console port of GTK+ ;-)
I amended the page for DotZshRc to point out that you really need to create both .zshrc and .zshenv from my site to get the full experience. Through this moment, over 200 people have visited the DotZshRc page, but only about 80 have seen DotZshEnv. If you're in the 120-user disjoint, then go back and snag the other one too!
Dewey, what part of this looks like authorities should be involved?
is prob. the best : )
At first glance, I didn't notice the colon and thought Microsoft was rolling out a new FUD campaign.
/. If the government wants us to respect the law, it should set a better example.
I would absolutely +love+ to be able to have more than 8 ANSI colors in bash. Back in the BBS days, we had EGA adapters that could do 64 colors.
Hell, it would be even better if we could define RRGGBB web-style colors.
THAT would be a very feature to have in my opinion. Does anyone know if this can be done using a VGA adapter? Would we have to do it in framebuffer or something?
Don't think that a small group of dedicated individuals can't change the world. It's the only thing that ever has.
No bashing old shells, please...
POSIX compliance is nice, but the Bourne shell itself is NOT POSIX compliant, and won't be made so.
/bin/sh?
So does bash, invoked as #!/bin/sh, actually behave like
"People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
or in the style of the wizard of oz,
bush 1.0 = lion
bush 2.0 = scarecrow
bush 3.0 = tinman (shudder)
It broke a script in 1 package, and was fixed in about 40minutes. What the hell are you talking about?
chmod has an intelligent option (uppercase X) to set the execute bit. This sets the execute but only for directories and executables (those which have the x bit set already).
The -R does it recursively.
Not content to rename Linux, the FSF has
started in on FreeBSD too now.
If only Novell would release CDE to open source. I would love to have dtksh everywhere.
Darn, I just upgraded for Doom 3, but I love the cat food game.
Many improvements /bugfixes but the same ol'ugly looking black screen...
Ash appears to consume large amounts of memory, and some people in BSD circles have serious objections to it.
See the discussion here (scroll down a bit into the postings). I don't have an opinion on the issue one way or another.
The edges of my mouth were beginning to twitch into a Howard Dean smile, and then you have to call the posters morons. Why don't you give a hint that its meant to be a geeky unix joke? Now it just sounds like elitist posing.
I know its hard to tell, even for people famaliar with rbash; but this is what passes for humor among unix geeks.
Maybe they're talking about Linux, the OS?
Expert in software patents or patent law? Contribute to the ESP wiki!
I think only a few would even try to argue that they are. Most shells aren only somewhat available on non *nix OSs & many aren't available ay all off of them. Bash is, at least, reasonably available on most OSs. It is also the de facto shell standard, being found on linux and most newer *nix variants.
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.
You moron, I wasn't the original poster.
When you must break compatibility, you increment
the major number. This serves as a warning.
So, if a bash upgrade would break scripts, then
it should get a new major number. This is the case
for some of the POSIX alignment.
Mere features and bug fixes don't deserve a new
major number.
I like bash, but the one thing that it doesn't support (out-of-the-box anyway) is auto-completion a la W2K. In NT, when you hit tab, you can cycle through all the words that can complete the letters you typed... on bash, it shows you a list.
Is there a way to make bash behave more like W2K in this sense?
You're speaking in half-truths.
The top catagory for this story is Announcements. It is also listed under the following catagories: GNU, Operating Systems, Unix, and lastly Linux.
It exposes that Gentoo is broken. There is a difference.
Windows XP users everywhere are amazed! 127!
urpmi package
emerge package
installpkg package
What others have I forgotten? Just about every modern distro has a cool, easy to use package installer. But when that fails, there's always the old fashioned way:
make
make install
(Score: -1, Stupid)
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.
Does it hurt to hear them lying? Was this the only world you had?
leave 3.0 alone! >:(
Just raise the taxes on crack.
What I would like to see Bash do is command completion a la 4DOS:
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".
www.eFax.com are spammers
zoidberg!
Of course, I was a bit puzzled when I couldn't find any mention of it on the GNU site....
(posted anon because I already modded)
"Linux: Bash 3.0 Released", in the slashdot Linux section - does anyone notice anything wrong with this?
Linus did not write bash. bash is a GNU project. Come on, people - it's one thing to not worry about calling Linux OSes GNU/Linux, but it's another to attribute credit to a completely unrelated party!
Does bash have "r" yet? Or has it always and I've just never found it? I don't want stupid csh "!" to repeat my commands.
And I set up bash so I can, for instance, move from rc2.d to rc3.d by typing
$ cd 2 3
?
The FSF actually does development in a very closed manner when it can (the gcc egcs split was partly because of this)
..and pshaw. egcs was a radical rewrite of GCC; it was run as a separate research project in order to be able to make huge changes and get releases out for testing without blocking bugfix work on the old, stable codebase. (Since radical rewrites tend to be high-risk.)
I've never heard that any kind of "openness" issue was involved.
*nix weenies can only wish they had the power and functionality of the mighty Windows' wsh!!!
Curiousity - anyone know if there's an RPM yet available?
This sig no verb.
This CD command replacement acts much like the well-known ACD utility used to under DOS -- it allows the user to move to a subdirectory even if only part of that subdirectory name is entered (regardless of its position in the tree), it shows an interactive picklist of options if more than one subdirectory matches the entered string, and it also provides a nice ncurses-bases interactive interface for traversing the directory tree in a visual manner.
Information, source, and binaries for various OSes can be obtained here:
WCD Wherever Change Directory
Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
The Theorem Theorem: If If, Then Then.
Add the following two lines to the .inputrc file in your home directory (or create it if it doesn't exist):
y -search-forward
"\M-[A":history-search-backward
"\M-[B":histor
That produces 4DOS-like command history behavior, at least on my box (Mandrake 8.2).
Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
The Theorem Theorem: If If, Then Then.
in my /etc/inputrc (or ~/.inputrc) I have:
"\e[18~": history-search-forward
"\e[19~": history-search-backward
Which does a MS style (shudder) history search on F8 and F7 - it sounds like it does exactly as you mention. With a change of escape code, you could adjust the key binding.
I take it you're showing how sometimes backspacing or moving the cursor backwards along a line that exceeds the terminal's width does a strange duplication thing, making it almost impossible to edit? In my own experience, there are two main reasons why this might happen:
1. you changed the *term window size while constructing the command, so use this to enable checks for this condition: shopt -s checkwinsize
2. you have an improperly terminated escape code in your prompt. I had this problem until I started using codes like this: \[\e[0m\] rather than the other style, which I now forget.
W2K style is a real pain, and to me it seems worth installing a few hundred MB of cygwin to get the bash behaviour! I'd be more interested in knowing how to get Bash behaviour in W2K. Any ideas?
It's not necessary to start on an empty line.
This is why error messages in any language should be accompanied by an error code (usually numerical but it doesn't have to be) that is unique to the root cause of the error. Then you can search on this error code regardless of the language of the message.
zsh
... real geeks spend more time playing with the one-line shell script than gawking at the porn.
... Perl beats the crap out of sh for stuff like this!)
(Just waiting for a language war to break out
my-machine $uname -sr /
SunOS 5.8
my-machine $which bash
/usr/bin/bash
my-machine $pkginfo -l SUNWbash
PKGINST: SUNWbash
NAME: GNU Bourne-Again shell (bash)
CATEGORY: system
ARCH: sparc
VERSION: 11.8.0,REV=2000.01.08.18.12
BASEDIR:
VENDOR: Sun Microsystems, Inc.
DESC: GNU Bourne-Again shell (bash)
PSTAMP: humbolt20000108182543
INSTDATE: May 28 2002 10:30
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 7 installed pathnames
5 shared pathnames
5 directories
1 executables
1399 blocks used (approx)
not that I use it, I prefer efficent shells *cough *ksh*cough*
IANAL but write like a drunk one.
By "real debugger" I mean something that can be used to reliably debug 10,000-line "configure" scripts and debug around control flow, handle sourcing multiple files, show a call stack, debug into or skip over into functions.
Not another one.
.. and call it Kenity.
- It's not the Macs I hate. It's Digg users. -