summaryrefslogtreecommitdiffstats
path: root/contrib/less/opttbl.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-05-13 06:52:46 +0000
committerdelphij <delphij@FreeBSD.org>2013-05-13 06:52:46 +0000
commit125cfd090f2af4935b7cbe526d98acec194a0b51 (patch)
treedae8c7ca2bd0438fe94a32ba65e342b324b29906 /contrib/less/opttbl.c
parent05a725b2d7d8814e7c9604b2ee91737853586bb3 (diff)
downloadFreeBSD-src-125cfd090f2af4935b7cbe526d98acec194a0b51.zip
FreeBSD-src-125cfd090f2af4935b7cbe526d98acec194a0b51.tar.gz
MFV: less v458.
MFC after: 2 weeks
Diffstat (limited to 'contrib/less/opttbl.c')
-rw-r--r--contrib/less/opttbl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/less/opttbl.c b/contrib/less/opttbl.c
index 0146793..6f582bf 100644
--- a/contrib/less/opttbl.c
+++ b/contrib/less/opttbl.c
@@ -52,6 +52,7 @@ public int use_lessopen; /* Use the LESSOPEN filter */
public int quit_on_intr; /* Quit on interrupt */
public int follow_mode; /* F cmd Follows file desc or file name? */
public int oldbot; /* Old bottom of screen behavior {{REMOVE}} */
+public int opt_use_backslash; /* Use backslash escaping in option parsing */
#if HILITE_SEARCH
public int hilite_search; /* Highlight matched search patterns? */
#endif
@@ -115,6 +116,7 @@ static struct optname pound_optname = { "shift", NULL };
static struct optname keypad_optname = { "no-keypad", NULL };
static struct optname oldbot_optname = { "old-bot", NULL };
static struct optname follow_optname = { "follow-name", NULL };
+static struct optname use_backslash_optname = { "use-backslash", NULL };
/*
@@ -446,6 +448,14 @@ static struct loption option[] =
NULL
}
},
+ { OLETTER_NONE, &use_backslash_optname,
+ BOOL, OPT_OFF, &opt_use_backslash, NULL,
+ {
+ "Use backslash escaping in command line parameters",
+ "Don't use backslash escaping in command line parameters",
+ NULL
+ }
+ },
{ '\0', NULL, NOVAR, 0, NULL, NULL, { NULL, NULL, NULL } }
};
OpenPOWER on IntegriCloud