3 ms·
When I last needed something similar, I wrote it like not command test -f $dest if or command test $src -nt $dest # do something end It sa
by yorwba 9y ago
When I last needed something similar, I wrote it like
not command test -f $dest
if or command test $src -nt $dest
# do something
end
It saves on the begin ... end, but is confusing to look at. Nested conditions are really not very ergonomic in fish.