[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Finding out if a C compiler is installed
- From: Alexander Nasonov <alnsn@...>
- Date: Sun, 15 Jul 2018 21:36:45 +0100
Luiz Henrique de Figueiredo wrote:
> > print(os.execute("cc >/dev/null"))
> > print(os.execute("true >/dev/null"))
>
> Sorry, I meant
>
> print(os.execute("which cc >/dev/null"))
> print(os.execute("which zz >/dev/null"))
'which' isn't a shell builtin.
Use the 'command' builtin:
command -v cc > /dev/null
--
Alex