I have a patchfile x.patch. Before I apply x.patch, I need to check, in the script, whether this patch is already applied. How can I invoke 'patch' to check whether patch is already applied, without actually applying it ?
I tried 'patch --dry-run -t <x.patch' but the exit status is 0 in both cases, whether path is apready applied ot not. How can I invoke 'patch' to whether atch is already applied, from the script ? YL _______________________________________________ help-gnu-utils mailing list help-gnu-utils@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-utils