> 2019/11/4 Mon 20:37:24 UTC+9 James McCoy wrote:
> >
> > On Mon, Nov 4, 2019, 05:28 Bram Moolenaar <[email protected] 
> > <javascript:>> wrote:
> >
> >>
> >> > On Sun, Nov 03, 2019 at 09:20:20PM +0100, Bram Moolenaar wrote:
> >> > > 
> >> > > Christian wrote:
> >> > > 
> >> > > > On So, 03 Nov 2019, Bram Moolenaar wrote:
> >> > > > 
> >> > > > > Right, "make vimtags" doesn't work.  I'm not sure how widespread 
> >> "type"
> >> > > > > is, I think "which" should be safer.
> >> > > > 
> >> > > > type or command -v  is the command one should use nowadays. For a 
> >> really 
> >> > > > deep dive into what to use, I suggest this great article:
> >> > > > 
> >> > > > https://unix.stackexchange.com/a/85250/303213
> >> > > 
> >> > > Hmm, not that great.  It doesn't list what command is available in 
> >> which
> >> > > version of a shell.  It does mention that "which" is widely available,
> >> > > while "type" is not.
> >> > 
> >> > FWIW, "command -v ..." is specified in POSIX.  "type" is as well, but as
> >> > an XSI extension.
> >>
> >> In tcsh:
> >>
> >> $ command -v vim
> >> command: Command not found.
> >>
> >> Perfect error message :-).
> >
> > Tcsh isn't /bin/sh, so I'm not sure why that's relevant.  This is in the 
> > context of a Makefile, which uses /bin/sh.

I suppose any kind of csh wouldn't work.

> We already use "command -v" in src/po/Makefile.
> I think it can be also safely used in runtime/doc/Makefile.

I was wondering how widely supported "command -v" is.  Perhaps it's OK,
since that existing use hasn't triggered complaints.  It's in a bit of a
far corner of the build rules though.

-- 
Now it is such a bizarrely improbable coincidence that anything as
mind-bogglingly useful as the Babel fish could have evolved purely by chance
that some thinkers have chosen to see it as a final and clinching proof of the
NON-existence of God.
The argument goes something like this: 'I refuse to prove that I exist,' says
God, 'for proof denies faith, and without faith I am nothing.'
'But,' says Man, 'the Babel fish is a dead giveaway, isn't it?  It could not
have evolved by chance.  It proves you exist, and so therefore, by your own
arguments, you don't.  QED.'
'Oh dear,' says God, 'I hadn't thought of that,' and promptly vanishes in a
puff of logic.
'Oh, that was easy,' says Man, and for an encore goes on to prove that black
is white and gets himself killed on the next pedestrian crossing.
                -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201911041748.xA4HmnDl024018%40masaka.moolenaar.net.

Raspunde prin e-mail lui