bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch-2.5.4 backup file extension


From: Bruno Haible
Subject: patch-2.5.4 backup file extension
Date: Mon, 7 Oct 2002 17:28:55 +0200

The man page of patch 2.5.4 says the default backup file extension is ".orig".
But the program uses a default backup file extension of "~", which doesn't
match traditional 'patch' behaviour.

Remember: GNU's not Unix, but GNU's not Emacs either.

Bruno


diff -r -c3 patch-2.5.4.bak/patch.c patch-2.5.4/patch.c
*** patch-2.5.4.bak/patch.c     Mon Aug 30 08:20:08 1999
--- patch-2.5.4/patch.c Sat Oct  5 22:48:01 2002
***************
*** 145,152 ****
                 : posixly_correct - 1);
  
      val = getenv ("SIMPLE_BACKUP_SUFFIX");
!     if (val && *val)
!       simple_backup_suffix = val;
  
      if ((version_control = getenv ("PATCH_VERSION_CONTROL")))
        version_control_context = "$PATCH_VERSION_CONTROL";
--- 145,151 ----
                 : posixly_correct - 1);
  
      val = getenv ("SIMPLE_BACKUP_SUFFIX");
!     simple_backup_suffix = val && *val ? val : ".orig";
  
      if ((version_control = getenv ("PATCH_VERSION_CONTROL")))
        version_control_context = "$PATCH_VERSION_CONTROL";

______________________________________________________________________________
Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo, 
ist aber viel günstiger! Alle Infos: http://diba.web.de/?mc=021104





reply via email to

[Prev in Thread] Current Thread [Next in Thread]