Use of uninitialized value $textOverwrite in numeric gt (>)

Started by sojournersonearth, July 01, 2025, 07:58:33 AM

Previous topic - Next topic

sojournersonearth

Running exiftool 13.31 on Linux command line, I am getting the following error:

Use of uninitialized value $textOverwrite in numeric gt (>) at /usr/local/bin/exiftool line 1545.
Output file "/path/to/.exif/backup/IMG_0354.JPG.csv" already exists

I am getting the error when using the stay_open option:

exiftool -stay_open true -@ -
-csv
-w
"/path/to/.exif/backup/IMG_0354.JPG.csv"
IMG_0354.JPG

The error does not show up immediately, but only when I run a new command:

-csv
-w!
"/path/to/.exif/backup/IMG_0354.JPG.csv"
IMG_0354.JPG
-execute
{ready}
-Filename
IMG_0354.JPG
-execute
Use of uninitialized value $textOverwrite in numeric gt (>) at /usr/local/bin/exiftool line 1545.
Output file "/path/to/.exif/backup/IMG_0354.JPG.csv" already exists
{ready}

I get the "Output file already exists" message even though the file does not appear to exist, and the file is not created. The error also shows up when using "w!".

Thanks for the help, and please let me know if my usage is wrong.

Phil Harvey

Excellent, thanks!  I wasn't initializing a variable properly after -execute

This will be fixed in 13.32

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

Oh, And the problem with the Output file is that you shouldn't be using quotes in an argfile.  A file with the quotes in the name should have been created.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

sojournersonearth

Great, thanks! And thanks for the reminder about quoting in argfiles - I had forgot!