about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-17 17:01:52 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-17 17:01:52 +0000
commit9ffe596f251b6b35d59da3b9e204b315d34fdfbf (patch)
tree8616c1e9fbde10800596127850ab2a5068bdc77a
parent6014bbdb459e30aee0f5ec4a7e0bdfb43a264adf (diff)
downloadzsh-3.1.6-bart-7-2.tar.gz
zsh-3.1.6-bart-7-2.tar.xz
zsh-3.1.6-bart-7-2.zip
zsh-3.1.6-bart-7-2 zsh-3.1.6-bart-7-2
-rw-r--r--Completion/Linux/_rpm4
-rw-r--r--Doc/Makefile.in6
-rw-r--r--Src/Zle/zle_tricky.c12
-rw-r--r--Src/init.c4
-rw-r--r--Src/main.c3
5 files changed, 10 insertions, 19 deletions
diff --git a/Completion/Linux/_rpm b/Completion/Linux/_rpm
index f54f77522..5b59f1d2b 100644
--- a/Completion/Linux/_rpm
+++ b/Completion/Linux/_rpm
@@ -148,7 +148,7 @@ while [[ -n "$state" ]]; do
       '*:RPM package:->package' && ret=0
     ;;
   build_b)
-    tmp=( '*:spec file:_path_files -/ -g \*.spec' )
+    tmp=( '*:spec file:_files -g \*.spec' )
     ;&
   build_t)
     (( $#tmp )) || tmp=( '*:tar file:_files -g \*.\(\#i\)tar\(.\*\|\)' )
@@ -195,7 +195,7 @@ while [[ -n "$state" ]]; do
       _hosts -S/ && ret=0
     else
       _description expl 'RPM package file'
-      _path_files "$expl[@]" -/ -g '*.(#i)rpm' && ret=0
+      _files "$expl[@]" -g '*.(#i)rpm' && ret=0
       _description expl 'ftp URL prefix'
       compadd "$expl[@]" ftp://
     fi
diff --git a/Doc/Makefile.in b/Doc/Makefile.in
index 6bf0c1cb2..03ef6bbc0 100644
--- a/Doc/Makefile.in
+++ b/Doc/Makefile.in
@@ -81,11 +81,10 @@ zsh.texi: zsh.yo
 	test -f $(sdir)/zsh.texi
 
 .yo.1:
-	@case $@ in \
+	case $@ in \
 	  */*) target=$@ ;; \
 	  *) target=$(sdir)/$@ ;; \
 	esac; \
-	$(YODL) -o $$target -I$(sdir) -w zman.yo version.yo $< ; \
 	$(YODL) -I$(sdir) -w zman.yo version.yo $< | sed -e '1s/\\-/-/g' -e '/^\.'\''/d' > $$target || exit 1; \
 	test -f $$target
 
@@ -99,11 +98,10 @@ zsh_toc.html: zsh.texi
 	$(TEXI2HTML) $(sdir)/zsh.texi
 
 zshall.1: zsh.yo
-	@case $@ in \
+	case $@ in \
 	  */*) target=$@ ;; \
 	  *) target=$(sdir)/$@ ;; \
 	esac; \
-	echo $(YODL) -o $$target -I$(sdir) -DZSHALL -w zman.yo version.yo zsh.yo; \
 	$(YODL) -I$(sdir) -DZSHALL -w zman.yo version.yo zsh.yo | sed -e '1s/\\-/-/g' -e '/^\.'\''/d' > $$target || exit 1; \
 	test -f $$target
 
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index aa7686b64..70371b41c 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -811,7 +811,7 @@ check_param(char *s, int set, int test)
 		*b != '=' && *b != Equals &&
 		*b != '~' && *b != Tilde)
 		break;
-	if (*b == '#' || *b == Pound || *b == '+' || *b == ' ')
+	if (*b == '#' || *b == Pound || *b == '+')
 	    b++;
 
 	e = b;
@@ -6927,20 +6927,14 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd)
     if (cc->mask & (CC_JOBS | CC_RUNNING | CC_STOPPED)) {
 	/* Get job names. */
 	int i;
-	char *j, *jj;
+	char *j;
 
 	for (i = 0; i < MAXJOB; i++)
 	    if ((jobtab[i].stat & STAT_INUSE) &&
 		jobtab[i].procs && jobtab[i].procs->text) {
 		int stopped = jobtab[i].stat & STAT_STOPPED;
 
-		j = jj = dupstring(jobtab[i].procs->text);
-		/* Find the first word. */
-		for (; *jj; jj++)
-		    if (*jj == ' ') {
-			*jj = '\0';
-			break;
-		    }
+		j = dupstring(jobtab[i].procs->text);
 		if ((cc->mask & CC_JOBS) ||
 		    (stopped && (cc->mask & CC_STOPPED)) ||
 		    (!stopped && (cc->mask & CC_RUNNING)))
diff --git a/Src/init.c b/Src/init.c
index 00ecd3ade..f0b9803e4 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -113,8 +113,8 @@ loop(int toplevel, int justonce)
 	if (!(list = parse_event())) {	/* if we couldn't parse a list */
 	    hend();
 	    if ((tok == ENDINPUT && !errflag) ||
-		(tok == LEXERR && (!noerrexit || emulation == EMULATE_KSH)
-		 && (!isset(SHINSTDIN) || !toplevel)) || justonce)
+		(tok == LEXERR && (!isset(SHINSTDIN) || !toplevel)) ||
+		justonce)
 		break;
 	    continue;
 	}
diff --git a/Src/main.c b/Src/main.c
index c0999deae..762e06b90 100644
--- a/Src/main.c
+++ b/Src/main.c
@@ -87,8 +87,7 @@ main(int argc, char **argv)
     for (;;) {
 	do
 	    loop(1,0);
-	while (tok != ENDINPUT &&
-	       (tok != LEXERR || noerrexit || isset(SHINSTDIN)));
+	while (tok != ENDINPUT && (tok != LEXERR || isset(SHINSTDIN)));
 	if (tok == LEXERR) {
 	    stopmsg = 1;
 	    zexit(lastval, 0);