Sure, I can put a try/finally block around the relevant code, but it's
only *reasonably good* safety, not perfect -- plus there's potential
for
issues if the user is trying to use tla concurrently.
Aren't you over-engineering this problem? We're talking about my-id
here.
#!/bin/sh
tla my-id "Something Else <address@bogus.example.com>"
tla dosomethingthatcores
tla my-id "James Blackwell <address@bogus.example.com>"
This would work just fine, provided you could tolerate a race for
my-id if
you ran tla elsewhere.