In some OS, like Ubuntu, Debian, etc. cal
return current calendar with highlighting of today. And cal -h
turns off highlighting of today:
But in some OS, like Arch Linux -h
param displays the help of a calendar.
I'm doing a small script with Lua:
function foo()
local f, err = io.popen('cal -h', 'r')
if f then
local s = f:read("*all")
f:close()
return s
else
return err
end
end
And my main question - how do I determine exactly what specifically returned parameter -h
?