mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
aa4e597344
Do not stop scanning if we see '$' as it does more harm than good. For $HOME/tm we should return $HOME/tm* Set license to BSD (not "public domain" due to sigact.[ch]). Submitted by: Simon Gerraty <sjg@juniper.net> Obtained from: NetBSD Approved by: skreuzer
20 lines
508 B
C
20 lines
508 B
C
--- edit.c.orig Thu May 13 19:04:33 1999
|
|
+++ edit.c Sun Jan 7 22:48:23 2007
|
|
@@ -344,6 +344,7 @@
|
|
*/
|
|
if (*cp && cp[1] == '\r') {
|
|
delimiter = *cp;
|
|
+ indelimit = !indelimit;
|
|
cp += 2;
|
|
}
|
|
|
|
@@ -847,7 +847,7 @@ add_glob(str, slen)
|
|
for (s = toglob; *s; s++) {
|
|
if (*s == '\\' && s[1])
|
|
s++;
|
|
- else if (*s == '*' || *s == '[' || *s == '?' || *s == '$'
|
|
+ else if (*s == '*' || *s == '[' || *s == '?'
|
|
|| (s[1] == '(' /*)*/ && strchr("*+?@!", *s)))
|
|
break;
|
|
else if (ISDIRSEP(*s))
|