Improve MinGW support in Readline
[deliverable/binutils-gdb.git] / readline / tilde.c
index 1c53a457d46ba17e3215f65476e3771a129de8e0..d4c1da9e68d0a599e176ab8eabf8bac40ac4ffc9 100644 (file)
@@ -360,6 +360,10 @@ tilde_expand_word (filename)
     {
       /* Prefix $HOME to the rest of the string. */
       expansion = sh_get_env_value ("HOME");
+#ifdef _WIN32
+      if (!expansion)
+       expansion = sh_get_env_value ("APPDATA");
+#endif
 
       /* If there is no HOME variable, look up the directory in
         the password database. */
This page took 0.024331 seconds and 4 git commands to generate.