From 2e73bb3f331088d6eacb1d50bb44121c7adbb9ef Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 26 Sep 2014 01:21:07 +0000 Subject: add VIS_META/VIS_SHELL support to encode all shell metacharacters. XXX: /etc/rc.d/wizd fix $ --- include/vis.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/vis.h') 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 -- cgit