On Thu, Mar 06, 2025 at 07:31:56PM +0100, Alejandro C via austin-group-l at The Open Group wrote: > Do we really need the -q option?
The original reporter (Mark Lundblad - illiliti) recommended it and argued that it is fairly commonly implemented. The example also shows it in use: 1. Create and use a temporary file, ignoring failure. <tt>file=$(mktemp -q file.XXXXXX) && { echo ... > "$file" # Use $file within this block rm "$file" }</tt> But I acknowledge that the same can be accomplished with: file=$(mktemp file.XXXXXX 2>/dev/null) && { ... rm "$file" } at which point you are right that -q does not buy much functionality, other than happening to be something to standardize because it is common among implementations. -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org