mktemp: make argument optional (coreutil 6.12 compat)
function old new delta mktemp_main 157 174 +17 packed_usage 24508 24504 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 17/-4) Total: 13 bytes
This commit is contained in:
@ -2542,19 +2542,18 @@
|
||||
#endif
|
||||
|
||||
#define mktemp_trivial_usage \
|
||||
"[-dt] [-p DIR] TEMPLATE"
|
||||
"[-dt] [-p DIR] [TEMPLATE]"
|
||||
#define mktemp_full_usage "\n\n" \
|
||||
"Create a temporary file with its name based on TEMPLATE.\n" \
|
||||
"TEMPLATE is any name with six 'Xs' (i.e., /tmp/temp.XXXXXX).\n" \
|
||||
"Create a temporary file with name based on TEMPLATE and print its name.\n" \
|
||||
"TEMPLATE must end with XXXXXX (i.e., /tmp/temp.XXXXXX).\n" \
|
||||
"\nOptions:" \
|
||||
"\n -d Make a directory instead of a file" \
|
||||
/* "\n -q Fail silently if an error occurs" - we ignore it */ \
|
||||
"\n -t Generate a path rooted in temporary directory" \
|
||||
"\n -p DIR Use DIR as a temporary directory (implies -t)" \
|
||||
"\n" \
|
||||
"\n" \
|
||||
"For -t or -p, directory is chosen as follows:\n" \
|
||||
"$TMPDIR if set, else -p DIR, else /tmp" \
|
||||
"\nFor -t or -p, directory is chosen as follows:" \
|
||||
"\n$TMPDIR if set, else -p DIR, else /tmp" \
|
||||
|
||||
#define mktemp_example_usage \
|
||||
"$ mktemp /tmp/temp.XXXXXX\n" \
|
||||
|
Reference in New Issue
Block a user