Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _ssh (scp)
- X-seq: zsh-workers 16577
- From: Clint Adams <clint@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: _ssh (scp)
- Date: Wed, 6 Feb 2002 11:43:15 -0500
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1020205183840.ZM30292@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20020204175927.GA12977@xxxxxxxx> <20020205102420.39912.qmail@xxxxxxxxxxxxxxxxxxxxxx> <20020205174702.GA2325@xxxxxxxx> <20020205180850.GA2743@xxxxxxxx> <1020205183840.ZM30292@xxxxxxxxxxxxxxxxxxxxxxx>
> 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