On Wed, Oct 02, 2002 at 08:30:54PM +0200, Per Einar Ellefsen wrote: > At 20:12 02.10.2002, Alan wrote: > >On Wed, Oct 02, 2002 at 01:21:49PM -0400, Geoffrey Young wrote: > >> so, it's not really a bug if you dig down into the docs and examples. > >> looks like a feature, though :) > > > >Agreed... more of a 'gotcha' though, ready to bite people in the butt. > >Personally I think it might make more sense to do a check to see if the > >val =~ /(\d+)(h|m|d|M)/ before it's sent off as a literal, but who > >knows. I'll email someone about it anyway. > > It's because you can put a correctly formatted date string in the -expires > option, AFAIK. So if using your idea, the "literal" string might be > misinterpreted. Also, don't forget that you have +1d and -1d as another > possibility. I think the +/- makes sense. It's just one character :)
Oh, totally agreed, I just figured that it might be a good way to set a default if there was no + or -, which could eliminate headaches for people like me :) Also, as there's no chance of a correctly formatted date string being "\d(h|m|d|etc)", it could be a fair assumption. My $0.02 anyway! :) alan -- Alan "Arcterex" <[EMAIL PROTECTED]> -=][=- http://arcterex.net "I used to herd dairy cows. Now I herd lusers. Apart from the isolation, I think I preferred the cows. They were better conversation, easier to milk, and if they annoyed me enough, I could shoot them and eat them." -Rodger Donaldson