Hi,

Ken wrote:
>       "cp %f /tmp/foo.$$.jpg; (xv /tmp/foo.$$.jpg; rm -f /tmp/foo.$$.jpg) &"

A hard link would seem more suitable?  Things take so many bits these
days.  They don't work across filesystems, of course.

    if t=%f-$$.jpeg && ln %f "$t"; then (xv "$t"; rm "$t") & fi

‘%f’ can't be prefixed because it includes the temporary path.
But appending to it destroys its suffix which needs re-creating with
a hard-cording.  %-escapes for the %f's dirname, basename, and an escape
for the mh...-suffix-... entry could be useful.


(I don't over-quote as it makes the reader in me wonder what the writer
 was attempting without need, or didn't understand about what they were
 doing.  Similar to ‘(m * x) + c’ or ‘(x > y) == TRUE’.  As each new
 language comes along, once I've been bitten enough then I can spot the
 lack of needed quoting.)

-- 
Cheers, Ralph.

Reply via email to