lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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