<br><br><div class="gmail_quote">On Wed, Feb 9, 2011 at 10:09 PM, Robert Nesius <span dir="ltr"><<a href="mailto:nesius@gmail.com">nesius@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Feb 9, 2011 at 10:04 PM, Robert Nesius <span dir="ltr"><<a href="mailto:nesius@gmail.com" target="_blank">nesius@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><br><div class="gmail_quote"><div>On Wed, Feb 9, 2011 at 7:07 PM, Mike Miller <span dir="ltr"><<a href="mailto:mbmiller%2Bl@gmail.com" target="_blank">mbmiller+l@gmail.com</a>></span> wrote:<br></div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>
<br>
...and I'm noticing that "history -a file" does not do anything if I wrote previously with "history -w file". Â I think this is a very serious bug that could cause loss of an important command history.<br>
<br>
I see here that it has been fixed in bash 4.2 release candidate 2...<br>
<br>
<a href="http://groups.google.com/group/gnu.bash.bug/browse_thread/thread/48152c5e8c35b743?pli=1" target="_blank">http://groups.google.com/group/gnu.bash.bug/browse_thread/thread/48152c5e8c35b743?pli=1</a><br>
<br>
...but I'm still on 4.0.33 on my main box. Â It gets worse. Â Here are two other boxes that I use a lot:<br>
<br>
<br></div><div>
How many years will pass before I get the bug fix? Â With CentOS I'll probably die first.<br>
<br>
Mike<br></div></blockquote><div><br>Hi Mike, <br><br>bash is pretty easy to build. Â I'm sure you could crank out a personal version and set your shell to use it instead (or exec your personel version during the login phase) in a blink. Â I'd probably just symlink to my personal copy until the distro finally caught up and then replace the symlink with the old binary before doing the update. Â (That's me - there are probably better ways to do it, like changing your default shell in /etc/passwd)... Â <br>
<br>The whole point of Open Source was, in part, to facillitate collaboration and to enable people to get bug fixes as soon as they are fixed. Â If you want to wait on a productized distro to eventually get around to it, that's your business. Â But it's not their fault for not jumping on an issue as as quickly as you'd like. Â Unless you're paying them and they've violated an SLA you paid money for them to abide by. <br>
<br>wget <a href="ftp://ftp.gnu.org/pub/bash/" target="_blank">ftp://ftp.gnu.org/pub/bash/</a><the_one_you_want>.tar.gz <br>tar -xzf bash*gz<br>cd bash*<br>./configure --prefix=$HOME/bin <br>make <br>make install <br>
<br>configure your system to get the new shell as you like. Â Make sure you have libreadline and its headers along with build-essentials (i.e., a working compiler). Â You might need a few other libs too but libreadline is the big one for bash. <br>
<br>Also, I always do a ./configure --help and review flags for functionality I need to flip at compile time before running the full configure. Â And, of course, it's never a bad idea to check the signatures of the files you download before compiling them - especially if root is going to run your shell. Â :) <br>
<br>-Rob </div></div>
</blockquote></div><br></div></div>Whoops. I'm getting rusty.  <br><br>wget <a href="ftp://ftp.gnu.org/pub/bash/" target="_blank">ftp://ftp.gnu.org/pub/bash/</a>gnu/the_one_you_want.tar.gz<br><br>Aaaaand.... bash 4.2 hasn't been released yet, and unlike a lot of projects apparently the bash source is not fully visible per this interesting thread: <br>
<br><a href="http://www.mail-archive.com/bug-bash@gnu.org/msg06351.html" target="_blank">http://www.mail-archive.com/bug-bash@gnu.org/msg06351.html</a><br><br>Allegedly the bash source is visible on Savannah but I'm not sure how current it is. The point being... the bash owner hasn't even provided a release for people to pull and deploy yet. I think you're being a bit harsh on CentOS. ;-) <br>
<div><br>-Rob<br></div><br>
</blockquote></div><br>*sigh* I have a cold. I blame it. The URL for all bash source tarballs: <br><a href="ftp://ftp.gnu.org/pub/bash/" target="_blank">ftp://ftp.gnu.org/pub/gnu/bash </a><br><br>I'm going to look for nyquil now. <br>
<br>_Rob<br><br>