Last updated: 04 Feb 2023 (Possibly original date: 25 Oct 2016)
-
Make much more customisable: now the default
diffas well as the less invocation can be configured.LESSDIFF_DIFFIs the defaultdiffandLESSDIFF_LESSis theless(1)invocation. -
Defend against
LESSDIFFbeing the same as the defaultdiff(now inLESSDIFF_DIFF). -
More documentation with examples etc.
- Use
-ninstead of-vas not all bash versions support-v.
- Check that the number of args specified is two.
- Use
-rfor directories.
- Allow diff options to be specified more easily. This means that one can cause a syntax error if they specify an option and a file as it now just checks that the number of args is >= 2. Of course it was possible to create a syntax error already so this hardly matters.