Pádraig Brady wrote: > Weird. I guess the `: > missing\dir` construct causes the script > to exit early in failure. Perhaps `if touch missing\dir` would work better.
No, that does not make a difference. Both ": > 'missing\dir'" and "touch 'missing\dir'" succeed when 'missing' is an existing directory and fail when 'missing' is nonexistent. (Tested in Cygwin 3.4.6.) Bruno