-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
mktemp requires three 'X' in the pattern argument. In the case where the XXX is missing and the tmpdir option is provided, the uutils-coreutils mktemp error message is a bit cryptic. This error message is better in the GNU version and could be improved in my opinion:
coreutils$ ./target/release/coreutils mktemp --tmpdir foobar
mktemp: failed to create file via template 'foobar/tmp.XXXXXXXXXX': No such file or directory
GNU version:
$ mktemp --tmpdir foobar
mktemp: too few X's in template ‘foobar’
Note that for the version without tmpdir, the error messages are the same in both versions:
GNU version:
coreutils$ mktemp foobar
mktemp: too few X's in template ‘foobar’
$ ./target/release/coreutils mktemp foobar
mktemp: too few X's in template 'foobar'
Reactions are currently unavailable