summary refs log tree commit diff
path: root/bin/man1/setopt.1
blob: a148b28f2ec830fd20157891385911a2e9dc6809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.Dd February 24, 2019
.Dt SETOPT 1
.Os
.
.Sh NAME
.Nm setopt
.Nd parse command options
.
.Sh SYNOPSIS
.Nm
.Ar optstring
.Op Ar args ...
.
.Sh DESCRIPTION
.Nm
behaves similarly to
.Xr getopt 1 ,
except that it produces quoted output
appropriate for use with the
.Nm eval
shell builtin.
This allows arguments containing whitespace
to survive parsing.
.
.Sh EXAMPLES
.Bd -literal -offset indent
args=$(setopt abo: "$@")
eval set -- "$args"
.Ed
.
.Sh SEE ALSO
.Xr getopt 1 ,
.Xr sh 1 ,
.Xr getopt 3
.
.Sh HISTORY
The
.Xr getopt 1
manual page of
.Fx
reads,
.Do
Arguments containing white space
or embedded shell metacharacters
generally will not survive intact;
this looks easy to fix but isn't.
.Dc
Yet here we are.
t'> 2024-06-15Add photo descriptions from June 12June McEnroe 2024-06-10Add first roll of film from June 8June McEnroe 2024-06-10Cope with not having an EXIF infoJune McEnroe 2024-06-10Resize using target pixel counts for consistencyJune McEnroe This will resize film scans to about the same size as for the digital photos. 2024-06-10Add The Girl Who Was Convinced...June McEnroe Not much there. The illustrations are very nice though. 2024-06-09Add photos from May 31June McEnroe 2024-06-09Use monospace on photo pagesJune McEnroe 2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe 2024-05-22Remove use of sysexits.hJune McEnroe 2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe 2024-05-21Fix = precedence in whenJune McEnroe