delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/09/11:06:02

Date: Sun, 9 Mar 1997 17:49:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andy Eskilsson <x-aes AT telelogic DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: Weird patch and redir problems.. Patch doesn't want to patch :-(
In-Reply-To: <ksafogw2ru.fsf@telelogic.se>
Message-ID: <Pine.SUN.3.91.970309174918.26812O-100000@is>
MIME-Version: 1.0

On 7 Mar 1997, Andy Eskilsson wrote:

> | Do you set LFN=y?  If not, set it and try again.  If you do have LFN=y, 
> | set it to n and see if that helps.  Methinks this is some kind of LFN 
> | mishap.
> 
> LFN is set to 'y' yes.. I tried it with LFN set to 'n' and it
> worked.. but.. but some of the files I want to patch has long
> filenames. Am I supposed to bugreport this somewhere, get rid of dos
> or just crawl back under my rock ;-)

A far better alternative is to get sources for `patch'
(v2gnu/pat21s.zip) and debug this problem.  I'm guessing that the
DOS-specific code there which handles backing up breaks on LFN
platforms.  The best solution is to make `patch' execute the original
Unix code when _USE_LFN returns non-zero, instead of ifdef'ing that
code away at compile time.

If you decide to work on that, please post the patches here when you
find a way to make it work with both LFN=y and LFN=n.  Thanks.

> To be honest, I
> couldn't imagine that you could use both -o and -eo, maybe some better
> docs for redir?? (The only I have found is the ones that comes when
> you type 'redir')

Huh?  How about typing this:

		info utils redir

It even shows you an example that uses both -o and -eo.  Doesn't the
above command work for you?

> I now discovered that 4dos can take care of stderr too, but what if I
> want to do something like command |& tee output, under command.com,
> can redir be used for this.

Yes.  See the docs.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019