You are not logged in.

#1 2008-07-05 22:48:07

Berticus
Member
Registered: 2008-06-11
Posts: 731

Help spot the issue in moc config

This is specifically for FormatString in moc. I had doubts whether it could handle nested terenary expressions. I checked the zshmisc man page, and it said it could handle it. So I tried it out:

FormatString        = "%(a:%(t:%a - :%a):)%(t:%t %(n:\(%n%(A: in %A:)\):%(A:\(%A\):)):)"

But I get an unexpected end of string error with that. So it would seem I'm missing something. My guess is that moc doesn't really use zshmisc (I don't have it installed) to handle formatstring. Or am I really missing something?

Edit
I'll probably clean it up if it can handle nested terenary expressions. Another question I had is if it can't handle nested terenary strings, can it handle compounded expressions like && and || like it says in the man page?

Last edited by Berticus (2008-07-05 22:49:08)

Offline

Board footer

Powered by FluxBB