Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _diff
- X-seq: zsh-workers 9667
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: PATCH: _diff
- Date: Thu, 10 Feb 2000 15:51:28 +0000
- In-reply-to: <38A2B5EB.20014972@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <38A2B5EB.20014972@xxxxxxxxxxxxx>
On Feb 10, 12:58pm, Oliver Kiddle wrote:
} Subject: PATCH: _diff
}
} This may have already been fixed but the diff completion seemed to call
} diff with /dev/null as stdin but not stdout and stderr.
I got "malformed patch" from this; line wrapping.
But why not use the more compact zsh syntax? This instead of Oliver's:
Index: Completion/User/_diff_options
===================================================================
@@ -4,7 +4,7 @@
(( $+_diff_is_gnu )) || {
_diff_is_gnu=0;
- [[ $(command diff -v </dev/null) == *GNU* ]] && _diff_is_gnu=1
+ [[ $(command diff -v >&/dev/null) == *GNU* ]] && _diff_is_gnu=1
}
if (( _diff_is_gnu ))
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author