"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "littleutils/tempname.1" between
littleutils-1.2.3.tar.lz and littleutils-1.2.4.tar.lz

About: littleutils are a collection of small and simple utilities (rename files, search for duplicate files, ...).

tempname.1  (littleutils-1.2.3.tar.lz):tempname.1  (littleutils-1.2.4.tar.lz)
skipping to change at line 23 skipping to change at line 23
OPTIONS OPTIONS
-h Print help and quit. -h Print help and quit.
-c Do not create a temporary file or directory, but only print the n ame. It becomes the responsibil- -c Do not create a temporary file or directory, but only print the n ame. It becomes the responsibil-
ity of the user to create this file. Be warned. Using this optio n is unsafe. ity of the user to create this file. Be warned. Using this optio n is unsafe.
-d Specify the directory in which the temporary file will be created. If this option is not speci- -d Specify the directory in which the temporary file will be created. If this option is not speci-
fied, the program will attempt to locate a writeable temporary directory in the following order: fied, the program will attempt to locate a writeable temporary directory in the following order:
"$TMPDIR", "$TEMP", "$TMP", "/tmp", "/var/tmp", and ".". If no wr iteable directory can be found, "$TMPDIR", "$TEMP", "$TMP", "/tmp", "/var/tmp", and ".". If no wr iteable directory can be found,
the program will abort. the program will abort. Directories that contain one or more sp
ace characters will be skipped in
this search.
-n Return the filename with no random portion attached. Also, no f -n Return the filename with no random portion attached. Also, no fil
ile will be created as per the -c e will be created as per the -c
option. This is typically used to provide a string against which option. This is typically used to provide a string against wh
the script writer can grep or ich the script writer can grep or
something like that. something like that.
-w Return the filename with a wildcard pattern instead of a rando -w Return the filename with a wildcard pattern instead of a random po
m portion. Also, no file will be rtion. Also, no file will be
created as per the -c option. This is typically used to provide a created as per the -c option. This is typically used to provide
string against which the script a string against which the script
writer can perform wildcard searches. writer can perform wildcard searches.
-D Create a directory instead of a file. The directory will have pe rmissions 0700. This option will -D Create a directory instead of a file. The directory will have per missions 0700. This option will
override the -c option. override the -c option.
-s suffix -s suffix
Attach the specified suffix to the filename. Attach the specified suffix to the filename.
-v Verbose output. The program will complain about any search direct ories that it finds that are not -v Verbose output. The program will complain about any search direc tories that it finds that are not
writeable. writeable.
-q Quiet output. The program will never complain about unwriteabl e directories, even when the user -q Quiet output. The program will never complain about unwriteable d irectories, even when the user
has specified an unwriteable directory using the -d option. has specified an unwriteable directory using the -d option.
HISTORY HISTORY
This utility was originally intended as an alternative to the tempfile pr ogram that is part of Debian's This utility was originally intended as an alternative to the tempfile program that is part of Debian's
"debianutils" package. The key reason for developing this new utility wa s the fact that some programs out "debianutils" package. The key reason for developing this new utility wa s the fact that some programs out
there insist on particular extensions in the filenames. At the time temp there insist on particular extensions in the filenames. At the time tem
name was written, the version of pname was written, the version of
tempfile found in Debian did not provide filename extensions on the temp tempfile found in Debian did not provide filename extensions on the tempo
orary files it created. Debian's rary files it created. Debian's
tempfile utility subsequently had the --suffix option added, but tempname tempfile utility subsequently had the --suffix option added, but tempn
has been preserved because of ame has been preserved because of
the usefulness of some of the other options. the usefulness of some of the other options.
Another utility that provides similar functionality to the tempfile Another utility that provides similar functionality to the tempfile progr
program is mktemp by Todd Miller, am is mktemp by Todd Miller,
which inspired the -D option, though no code was actually copied from m which inspired the -D option, though no code was actually copied fro
ktemp. And interestingly, GNU m mktemp. And interestingly, GNU
coreutils added a mktemp utility with version 6.10 in 2008. coreutils added a mktemp utility with version 6.10 in 2008.
The logic for safely creating a temporary file or directory was der ived from the tempname routine in The logic for safely creating a temporary file or directory was derived from the tempname routine in
glibc-2.6.1 (and subsequent updated thereafter). glibc-2.6.1 (and subsequent updated thereafter).
COPYRIGHT COPYRIGHT
Original tempname routine Copyright 1991-2020 Free Software Foundation, Original tempname routine Copyright 1991-2020 Free Software Foundatio
Inc. Derived tempname program n, Inc. Derived tempname program
Copyright (C) 2004-2020 by Brian Lindholm. Copyright (C) 2004-2021 by Brian Lindholm.
This program is free software; you can use it, redistribute it, and/or This program is free software; you can use it, redistribute it, and/or mo
modify it under the terms of the dify it under the terms of the
GNU General Public License as published by the Free Software Foundation; GNU General Public License as published by the Free Software Foundati
either version 3, or (at your on; either version 3, or (at your
option) any later version. option) any later version.
This program is distributed in the hope that it will be useful, but WITHO UT ANY WARRANTY; without even the This program is distributed in the hope that it will be useful, but WITHO UT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR POSE. See the GNU General Public
License for more details. License for more details.
littleutils 2020 Oct 16 TEMPNAME(1) littleutils 2021 Jan 15 TEMPNAME(1)
 End of changes. 14 change blocks. 
32 lines changed or deleted 34 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)