Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: make completion on OpenBSD



(Let's peel off some indentation here ...)

On Sat, 25 May 2002, Jukka Lehti wrote:

> compctl -s "\$(awk '/^[a-zA-Z0-9][^\/ \t]+:/{print \$1}' FS=: [mM]akefile)" -x 'c[-1,-f]' -f -- {,g,gnu,p,v}make

> I did "setopt > opts" on both machines and diff
> shows that the files are identical. Both machines have
> zsh-4.0.4. OS are Red Hat Linux 7.3 and OpenBSD 3.1,
> both pretty much at out-of-box state.

One possible difference is that awk is definitely GNU awk on RedHat, but
it may be something else on OpenBSD.  Have you tried running just the awk
expressions on both platforms to see if the output is different?

awk '/^[a-zA-Z0-9][^\/ \t]+:/{print $1}' FS=: [mM]akefile

In particular I'm wondering if you need a literal tab instead of \t in
that character class on OpenBSD.

In any event, since you're using zsh-4.0.4, why not abandon your compctl
entirely and enable the newer completion system?  It includes a very
detailed "make" completion.



Messages sorted by: Reverse Date, Date, Thread, Author