summaryrefslogtreecommitdiff
path: root/include/vis.h
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2014-09-26 01:21:07 +0000
committerchristos <christos@NetBSD.org>2014-09-26 01:21:07 +0000
commit2e73bb3f331088d6eacb1d50bb44121c7adbb9ef (patch)
tree41689dea33209a34907c3600b2dc8c8e654ca69d /include/vis.h
parent911916a201b9a21fb3a9d9b4c346286adcb2953d (diff)
add VIS_META/VIS_SHELL support to encode all shell metacharacters.
XXX: /etc/rc.d/wizd fix $
Diffstat (limited to 'include/vis.h')
-rw-r--r--include/vis.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vis.h b/include/vis.h
index b4c6b5e1c6d..15e99b0e039 100644
--- a/include/vis.h
+++ b/include/vis.h
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.h,v 1.21 2013/02/20 17:01:15 christos Exp $ */
+/* $NetBSD: vis.h,v 1.22 2014/09/26 01:21:07 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -63,6 +63,8 @@
#define VIS_NOESCAPE 0x0400 /* don't decode `\' */
#define _VIS_END 0x0800 /* for unvis */
#define VIS_GLOB 0x1000 /* encode glob(3) magic characters */
+#define VIS_SHELL 0x2000 /* encode shell special characters [not glob] */
+#define VIS_META (VIS_WHITE | VIS_GLOB | VIS_SHELL)
/*
* unvis return codes