--- y.tab.orig	2001-03-27 07:06:14.000000000 -0800
+++ y.tab.c	2004-01-13 12:44:51.000000000 -0800
@@ -3803,7 +3803,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 to bypass when we're in homedir
+		 * so we can get a tilde as with lower-case w */
+		
+		if (c == 'W' && (strcmp(get_string_value ("HOME"), temp) != 0))
 		  {
 		    if (ROOT_PATH (t_string) == 0 && DOUBLE_SLASH_ROOT (t_string) == 0)
 		      {
