Beware of bash 3.1 (never mind, kinda)

Callum Lerwick seg at haxxed.com
Sat Apr 29 03:59:49 UTC 2006


Okay, I was dumb and didn't actually test on bash 3.0. No more FC4 boxes
around. And my debian box is up to 3.1 now as well. Here's my gentoo
embedded chroot:

burgertime / # bash --version
GNU bash, version 3.00.16(1)-release (i586-gentoo-linux-uclibc)
Copyright (C) 2004 Free Software Foundation, Inc.
burgertime / # cat <<EOF > asfasdfasd
> export JAVA_HOME=/opt/jre1.5.0_06
> export PATH=$JAVA_HOME/bin:$PATH
> EOF
burgertime / # cat asfasdfasd
export JAVA_HOME=/opt/jre1.5.0_06
export
PATH=/bin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/seg/bin

And going back to my original bug:

burgertime ~ # echo ${PWD/#$HOME/~}
~
burgertime ~ # echo ~
/home/seg

And under FC5:

$ echo ${PWD/#$HOME/~}
/home/seg
$ echo ~
/home/seg

So now I'm confused and embarrassed, and those instructions are broken
on FC4 as well.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20060428/151b6b81/attachment.sig>


More information about the fedora-devel-list mailing list