summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-10-30 12:41:50 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-10-30 12:41:50 +0000
commitb778a323749fc84565042563b4ad7c15003d4cf3 (patch)
treeae4624cdfa9d87e8e6305bc2d7d571d1345b0b51 /lib/libc
parentb585dc87ccd444c5e60867d605f90c42b6e11c85 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/vis.32
-rw-r--r--lib/libc/gen/vis.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/vis.3 b/lib/libc/gen/vis.3
index 25f1365a1b10..2cc1e5a60334 100644
--- a/lib/libc/gen/vis.3
+++ b/lib/libc/gen/vis.3
@@ -138,7 +138,7 @@ The following flags
alter this:
.Bl -tag -width VIS_WHITEX
.It Dv VIS_GLOB
-Also encode magic characters ('*', '?', '[') recognized by
+Also encode magic characters ('*', '?', '[' and '#') recognized by
.Xr glob 3
.It Dv VIS_SP
Also encode space.
diff --git a/lib/libc/gen/vis.c b/lib/libc/gen/vis.c
index 4f594ebe3f59..1d7e860636b0 100644
--- a/lib/libc/gen/vis.c
+++ b/lib/libc/gen/vis.c
@@ -71,7 +71,8 @@ vis(dst, c, flag, nextc)
}
}
- if ((flag & VIS_GLOB) && (c == '*' || c == '?' || c == '['))
+ if ((flag & VIS_GLOB) &&
+ (c == '*' || c == '?' || c == '[' || c == '#'))
;
else if (isgraph(c) ||
((flag & VIS_SP) == 0 && c == ' ') ||