RH9 breaks bash ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After upgrading from Red Hat 6.2 to Red Hat 9, parts of my .bashrc
produce different results than before.  In particular, backslash
seems to no longer be recognized within double quotes.  This
sequence:

   MY_HN=`hostname | sed -e 's/\..*//' `
   MY_TITLES="\0033]2;$MY_HN\0007\0033]1;$MY_HN\0007"
   /bin/echo "${MY_TITLES}\c"

which used to set the xterm window and icon titles, now just echos
the uninterpreted string:

    \0033]2;cricket\0007\0033]1;cricket\0007\c

The difference is not in xterm, because the titles do get set correctly
when I rlogin to an older system from an RH9 xterm.

How can I restore the previous behavior?  Changing the .bashrc is
probably not a viable approach, because it still needs to work on
a variety of systems, some of which have older versions of bash.

This is the RH9 version:

    [cricket : phutchis]$ bash -version
    GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
    Copyright (C) 2002 Free Software Foundation, Inc.

These are some of the other versions:

    [methane : phutchis]$ bash -version
    GNU bash, version 1.14.5(1)

    [riparian : phutchis]$ bash -version
    GNU bash, version 2.03.0(1)-release (i386--freebsd3.3)
    Copyright 1998 Free Software Foundation, Inc.

    [stratus : phutchis]$ bash -version
    GNU bash, version 2.03.0(1)-release (sparc-sun-solaris)
    Copyright 1998 Free Software Foundation, Inc.

    [fanno : phutchis]$ bash -version
    GNU bash, version 2.03.0(1)-release (sparc-sun-solaris2.7)
    Copyright 1998 Free Software Foundation, Inc.


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux