summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2013-09-21 16:39:25 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2013-09-21 16:39:25 -0700
commit27f9c515ff9e8d422ea4ae1571174c0b02540f7c (patch)
treeb31fe7c399f620c9840e7207e89da0c78a8f49c7
parent61deff76f22310ce9e10dd2174b8cf8e48c678ee (diff)
downloadzsh-27f9c515ff9e8d422ea4ae1571174c0b02540f7c.tar.gz
zsh-27f9c515ff9e8d422ea4ae1571174c0b02540f7c.tar.xz
zsh-27f9c515ff9e8d422ea4ae1571174c0b02540f7c.zip
unposted: improve an error message.
-rw-r--r--ChangeLog4
-rw-r--r--Src/glob.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6256f5210..148aef5cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-09-21  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* unposted: Src/glob.c: improve an error message.
+
 2013-09-19  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 31737: Src/Zle/computil.c (get_cadef): same fix as get_cvdef.
diff --git a/Src/glob.c b/Src/glob.c
index 0defb1a0f..9299b95ea 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -1611,7 +1611,8 @@ zglob(LinkList list, LinkNode np, int nountok)
 		    break;
 		}
 		default:
-		    zerr("unknown file attribute");
+		    untokenize(--s);
+		    zerr("unknown file attribute: %c", *s);
 		    restore_globstate(saved);
 		    return;
 		}