what is wrong with my RPS1 expression
RPS1='%(t.[Ding!].%(t30.[Dong!].[%T]))'
Explanation:
I want to get [Ding!]
if it is 11am, [Dong!]
if it is 11:30am and if both is not true just normal time like [11:33]
. But what is wrong?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityThe syntax is %[<number>](X.true.false)
, not %(X[<number>].true.false)
.
So:
RPS1='%(t.[Ding!].%30(t.[Dong!].[%T]))'