nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] mhstore overwriting files

2012-09-11 12:16:59

From: Lyndon Nerenberg <lyndon(_at_)orthanc(_dot_)ca>


On 2012-09-11, at 7:45 AM, Michael Richardson wrote:

yeah, but can we not use ()?  They really suck if you actually have to 
\(-type them rather than shell complete them.
(And if you have fu.gif and fu(, you have to type the (...)

Parens can cause problems with shell globbing as well, and should be 
avoided.  I
prefer:

  foo                -> foo-1 || foo-2 || foo-3 ... foo-999 etc.
  foo.bar    -> foo-1.bar
  foo.bar.baz        -> foo.bar-1.baz

If foo-1 is an existing valid file you get foo-2 instead of foo-1-1, but 
it's a rare
enough occurrence that it's not worth worrying about.

Sounds good, better then parens, to me.

steve
--
  

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>