From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21021 invoked from network); 12 May 1997 18:47:20 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 12 May 1997 18:47:20 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id OAA20931; Mon, 12 May 1997 14:31:27 -0400 (EDT) Resent-Date: Mon, 12 May 1997 14:31:27 -0400 (EDT) From: (Zoltan T. Hidvegi) Message-Id: <9705121815.AA22108@lotto.fishkill.ibm.com> Subject: Re: Warning: patch-2.2 and zsh-3.1.2 patch In-Reply-To: from Andrej Borsenkow at "May 12, 97 02:51:42 pm" To: borsenkow.msk@sni.de Date: Mon, 12 May 1997 14:14:48 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: Resent-Message-ID: <"EYcaZ2.0.-65.-7sTp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3139 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Andrej Borsenkow wrote: > Probably of some interest: I had problems with new patch 2.2. First, it > rejects plain -p option (without operand); second, if given patch That's bad. I've been using using patch -p for ages. > _without_ -p option at all, it cannot find any file with pathname. Yes, you should not use it without -p. It can patch the wrong Makefile.in and other bad things can happen. > patch -p0 seems to work. I don't remember, if -p0 was legal option in > earlier versions of patch, but if yes, please, add it to your shell > script. Yes, -p0 was always legal, but I was always lazy to write this redundant zero. And I'm sure that I'll keep forgetting this well after I upgrade my patch program. > As a side note, our shell doesn't like > echo $errors hunk(s) failed. > line. It complaints "syntax error: `(' unexpected". It is claimed to be > POSIX-compliant. Which is OK, since no other POSIX/Bourne shell can parse that line. I did not notice this since when I tested this, the patch did not fail and this line was never executed. Zoltan