Subject: Re: mktemp(1) synopsis; calling it without arguments
To: Hubert Feyrer <hubert@feyrer.de>
From: Tilman Kranz <tilman.kranz@tk-sls.de>
List: tech-userlevel
Date: 09/18/2006 06:40:24
Hubert Feyrer schrieb:
> [...]
>>> mktemp [-d] [-q] [-u] [-t prefix | template ...]
>> [...]
>> mktemp [-d] [-q] [-u] {-t prefix | template ...}
> I'm not sure about using curly braces in this context -
> is there any (manpage) example where that's used? [...]
I used mdoc(7), conventions section, first paragraph.
> [...] Else I'd suggest
> mktemp [-d] [-q] [-u] -t prefix
> mktemp [-d] [-q] [-u] template
I considered that, and if option and non-option were mutually
exclusive I would have written that. The problem is that
$ mktemp -t foo bar
is valid and will create files "$TMPDIR/foo.<8-digits>"
and "./bar".
Personally, I am fine with either of the three solutions.