Magellan Linux

Annotation of /trunk/bash/patches/bash-3.0-pwd.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years, 1 month ago) by niro
File size: 583 byte(s)
-import

1 niro 144 --- bash-3.0/parse.y.pwd 2005-03-15 14:22:36.000000000 +0000
2     +++ bash-3.0/parse.y 2005-03-15 14:22:37.000000000 +0000
3     @@ -4103,7 +4103,7 @@
4     #define ROOT_PATH(x) ((x)[0] == '/' && (x)[1] == 0)
5     #define DOUBLE_SLASH_ROOT(x) ((x)[0] == '/' && (x)[1] == '/' && (x)[2] == 0)
6     /* Abbreviate \W as ~ if $PWD == $HOME */
7     - if (c == 'W' && (((t = get_string_value ("HOME")) == 0) || STREQ (t, temp) == 0))
8     + if (c == 'W' && (((t = get_string_value ("HOME")) == 0) || STREQ (t, t_string) == 0))
9     {
10     if (ROOT_PATH (t_string) == 0 && DOUBLE_SLASH_ROOT (t_string) == 0)
11     {