Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Question on filename completion
- X-seq: zsh-users 12863
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Subject: Re: Question on filename completion
- Date: Wed, 21 May 2008 17:59:56 +0100
- In-reply-to: <d53cb3110805210955y2ef10f99rbd0e4cc5c3b4db61@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <d53cb3110805181023p1e823d8drb196db9e52f79b33@xxxxxxxxxxxxxx> <080518120311.ZM4212@xxxxxxxxxxxxxxxxxxxxxx> <20080518212422.6f14cf75@pws-pc> <d53cb3110805210111l373971d2n59d85474f0b368de@xxxxxxxxxxxxxx> <20080521093701.5d1a9505@news01> <d53cb3110805210955y2ef10f99rbd0e4cc5c3b4db61@xxxxxxxxxxxxxx>
"Gowtham M" wrote:
> Oops, I did not know that the text pasted is to be patched. I am having
> tough time figuring out how to patch the _path_files file. I copied the text
> between the lines
>
> diff -u -r1.27 _path_files
>
> and
>
> testpath="$donepath"
>
> to a file and fed that file patch command. patch failed, I tried with
> several other combinations of input to patch, deleted the first one line
> first, next second, but nothing worked.
In this case, in fact, you should fairly straightforwardly be able to
locate the point at which the text needs to be inserted. Then you can
copy it in with the leading "+"'s stripped. That's good enough.
To use patch, you should just be able to pass the whole ASCII text file
(you don't need to copy anything out as long as there's no mail quoting
left in the part which is the patch) to patch from the top level of the
zsh distribution with
patch -p0 <that_file
If you do it from the directory with _path_files in, omit "-p0".
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author