zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: suppress cmp warning
@ 2013-11-14 11:54 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2013-11-14 11:54 UTC (permalink / raw)
  To: Zsh Hackers' List

This has been bugging me.  We don't need to see a warning from cmp
here; neither case is problematic, so the warning is just noise.

diff --git a/Src/zsh.mdd b/Src/zsh.mdd
index 4bc884b..d77fc43 100644
--- a/Src/zsh.mdd
+++ b/Src/zsh.mdd
@@ -44,7 +44,7 @@ patchlevel.h: FORCE
 	  cp -f $(sdir)/$@.release $@; \
 	else \
 	  echo '#define ZSH_PATCHLEVEL "'`cd $(sdir) && git describe --tags --long`'"' > $@.tmp; \
-	  cmp $@ $@.tmp && rm -f $@.tmp || mv $@.tmp $@; \
+	  cmp $@ $@.tmp 2>/dev/null && rm -f $@.tmp || mv $@.tmp $@; \
 	fi
 FORCE:
 

pws


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-14 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-14 11:54 PATCH: suppress cmp warning Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).