How to make sure that the outputs of a pipeline are in quotes?
00:31 06 Nov 2026

I've written a zsh script including the following line of code:

$(find . -iname "*.jpg" | sort -V)

The above is used as the input to a terminal program (img2pdf), but because the output strings aren't quoted, it fails whenever the filenames contain quotes (at least, that's what seems to be going on). What is the best way to make sure that the quotes are preserved?

zsh quotes