diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Src/hist.c | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 36e3ea576..0528b285f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2002-02-04 Clint Adams <clint@zsh.org> +2002-02-06 Clint Adams <clint@zsh.org> + + * 16577: Src/hist.c: don't return a single dot as the + path head of a slash. + +2002-02-05 Clint Adams <clint@zsh.org> * 16568: Completion/Unix/Command/_ssh: get listing of entire directory for approximation and other purposes. diff --git a/Src/hist.c b/Src/hist.c index dfd34c716..e5fcf5ff8 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -1378,7 +1378,11 @@ remtpath(char **junkptr) while (str >= *junkptr && !IS_DIRSEP(*str)) --str; if (str < *junkptr) { - *junkptr = dupstring ("."); + if (IS_DIRSEP(**junkptr)) + *junkptr = dupstring ("/"); + else + *junkptr = dupstring ("."); + return 0; } /* repeated slashes are considered like a single slash */ |