lessecho.c (221715) | lessecho.c (237613) |
---|---|
1/* | 1/* |
2 * Copyright (C) 1984-2011 Mark Nudelman | 2 * Copyright (C) 1984-2012 Mark Nudelman |
3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * | 3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * |
7 * For more information about less, or for information on how to 8 * contact the author, see the README file. | 7 * For more information, see the README file. |
9 */ 10 11 12/* 13 * lessecho [-ox] [-cx] [-pn] [-dn] [-a] file ... 14 * Simply echos its filename arguments on standard output. 15 * But any argument containing spaces is enclosed in quotes. 16 * --- 6 unchanged lines hidden (view full) --- 23 * -ex Specifies "x" to be the escape char for metachars. 24 * -fn Specifies "x" to be the escape char for metachars, as an integer. 25 * -a Specifies that all arguments are to be quoted. 26 * The default is that only arguments containing spaces are quoted. 27 */ 28 29#include "less.h" 30 | 8 */ 9 10 11/* 12 * lessecho [-ox] [-cx] [-pn] [-dn] [-a] file ... 13 * Simply echos its filename arguments on standard output. 14 * But any argument containing spaces is enclosed in quotes. 15 * --- 6 unchanged lines hidden (view full) --- 22 * -ex Specifies "x" to be the escape char for metachars. 23 * -fn Specifies "x" to be the escape char for metachars, as an integer. 24 * -a Specifies that all arguments are to be quoted. 25 * The default is that only arguments containing spaces are quoted. 26 */ 27 28#include "less.h" 29 |
31static char *version = "$Revision: 1.14 $"; | 30static char *version = "$Revision: 1.15 $"; |
32 33static int quote_all = 0; 34static char openquote = '"'; 35static char closequote = '"'; 36static char *meta_escape = "\\"; 37static char meta_escape_buf[2]; 38static char metachars[64] = ""; 39static int num_metachars = 0; --- 233 unchanged lines hidden --- | 31 32static int quote_all = 0; 33static char openquote = '"'; 34static char closequote = '"'; 35static char *meta_escape = "\\"; 36static char meta_escape_buf[2]; 37static char metachars[64] = ""; 38static int num_metachars = 0; --- 233 unchanged lines hidden --- |