The command ls -al dog RCS/dog,v returns
-rw-r--r-- 1 simon simon 0 Apr 13 19:25 dog
-r--r--r-- 1 simon simon 191 Apr 13 19:28 RCS/dog,v
indicating that RCS/dog,v is newer than dog, yet
if [[ RCS/$dog* -nt dog ]] ; then echo not older than dog ; else echo older than dog ; fi
returns older than dog. Since for a file not ending in ,v this comparison performs correctly it seems to be a problem with files ending in ,v. Could somebody suggest how to fix this please?
$dogvar is set to anything, globs are not expanded in[[ ... ]]:[[ /e* = /etc ]] || echo no=>no. – Apr 14 '20 at 02:47