Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: _ssh (scp)



> There was a change to make :h behave more as if it knew about file structure,
> but I'm quite sure that turning `/' into `.' was not an intended effect, and
> in fact it looks like a serious bug to me.

Is the following acceptable behavior on Cygwin?

Index: Src/hist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/hist.c,v
retrieving revision 1.36
diff -u -r1.36 hist.c
--- Src/hist.c	2001/10/26 23:47:10	1.36
+++ Src/hist.c	2002/02/06 16:38:14
@@ -1378,7 +1378,11 @@
     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 */



Messages sorted by: Reverse Date, Date, Thread, Author