mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-06 09:41:07 +01:00
16577: don't return a single dot as the path head of a slash.
This commit is contained in:
parent
aa9b40fb5d
commit
7dea9669bb
2 changed files with 11 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue