summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
 		}