Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: suppress cmp warning
- X-seq: zsh-workers 31983
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: PATCH: suppress cmp warning
- Date: Thu, 14 Nov 2013 11:54:15 +0000
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author