diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-08-09 19:38:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-08-09 19:38:32 +0000 |
commit | 37d43a6ee9cff1651397a00f88f10a313035035f (patch) | |
tree | fc1348344f7251e2524391f8ab7cb939cfb6673f /lib/libc/gen/vis.3 | |
parent | 6d323bce302cff7a7bf4dbdc3f1e1f485c4810d0 (diff) |
Add VIS_GLOB to escape special characters used by shell-style globbing.
From Solar Designer based on changes in FreeBSD. OK deraadt@
Diffstat (limited to 'lib/libc/gen/vis.3')
-rw-r--r-- | lib/libc/gen/vis.3 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/gen/vis.3 b/lib/libc/gen/vis.3 index 54ed818d507..86cbc81c3e0 100644 --- a/lib/libc/gen/vis.3 +++ b/lib/libc/gen/vis.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vis.3,v 1.20 2005/02/25 03:12:43 cloder Exp $ +.\" $OpenBSD: vis.3,v 1.21 2005/08/09 19:38:31 millert Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 9, 1993 +.Dd August 8, 2005 .Dt VIS 3 .Os .Sh NAME @@ -163,6 +163,14 @@ except space, tab, and newline are encoded The following flags alter this: .Bl -tag -width VIS_WHITEX +.It Dv VIS_GLOB +Also encode magic characters recognized by +.Xr glob 3 +.Ql ( * , +.Ql \&? , +.Ql \&[ ) +and +.Ql # . .It Dv VIS_SP Also encode space. .It Dv VIS_TAB |