nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] I'm confused

2012-09-14 14:08:18
OK, well, this stuff did fine for years.  Guess those shortcut hacks are
coming back to haunt me.

Well, it wasn't widely known before so maybe now we're getting more
users, and the rough edges are being exposed.  Also, it wasn't until
1.5 that it worked out of the box.

glob won't work because it doesn't do tilde expansion but wordexp does.

I just checked and on two systems (MacOS X and Linux) I see that there
is a GLOB_TILDE flag that does what you expect.  It's not part of POSIX,
though.  I'd live with only supporting tilde expansion on systems
that supoprted glob().

Hm, I was not aware of wordexp() until now ... I see it does more
things, like support for environment variables.  But it seems like
it's implemented via a subshell.  At least that would move some of
the complexity out of nmh and potentially make it more portable.
I guess I'm torn; part of me prefers glob(3) just because it's more
straightforward, but I can see the added utility of wordexp(3).
Thoughts?

Having a real attach command would give Norm a place for documentation.

Definitely.

--Ken

_______________________________________________
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>