]> pd.if.org Git - zpackage/blob - doc/zpm-quote.8
remove stray debug fprintf
[zpackage] / doc / zpm-quote.8
1 .TH zpm-quote 8 2018-12-08 "ZPM 0.3"
2 .SH NAME
3 zpm-quote \- list files in a zpm package
4 .SH SYNOPSIS
5 .B zpm quote
6 [
7 .B -qsi
8 ]
9 [\fB-d \fIdelimiter\fR]
10 .SH DESCRIPTION
11 \fBzpm-quote\fR quotes its arguments so the result can
12 be safely interpolated in sql statements or shell scripts.
13 By default the arguments are quoted as a sql string literal.
14 .SH OPTIONS
15 .TP
16 \-q
17 add quotes around the result.
18 .TP
19 \-s
20 quote for the shell instead of sql
21 .TP
22 \-i
23 quote as an sql identifier
24 .TP
25 \-d \fIdelimiter\fR
26 separate arguments with the given delimiter string.  If
27 not specified, results are separated with a newline
28 .SH EXAMPLES
29 .Pp
30 zpm quote foo -> foo
31 .PP
32 zpm quote -q foo -> 'foo' 
33 .PP
34 zpm quote -qi foo -> "foo"
35 .PP
36 zpm quote -q 'foo bar' -> 'foo bar'
37 .PP
38 zpm quote -qs "foo'bar" -> 'foo'\\''bar'
39 .SH EXIT STATUS
40 0 on success non zero on failure
41 .SH FILES
42 None
43 .SH ENVIRONMENT
44 None
45 .SH AUTHOR
46 Nathan Wagner
47 .SH SEE ALSO
48 zpm(8)