--- y.tab.orig	2002-05-21 08:57:35.000000000 -0700
+++ y.tab.c	2004-01-13 11:37:42.000000000 -0800
@@ -5462,7 +5462,11 @@
 
 #define ROOT_PATH(x)	((x)[0] == '/' && (x)[1] == 0)
 #define DOUBLE_SLASH_ROOT(x)	((x)[0] == '/' && (x)[1] == '/' && (x)[2] == 0)
-		if (c == 'W')
+
+		/* added "&& get..." below so when we're in homedir
+		 * we can get a tilde rather than homedir basename */
+		
+		if (c == 'W' && (strcmp(get_string_value ("HOME"), temp) != 0))
 		  {
 		    if (ROOT_PATH (t_string) == 0 && DOUBLE_SLASH_ROOT (t_string) == 0)
 		      {
