[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] --date
From: |
James Blackwell |
Subject: |
Re: [Gnu-arch-users] --date |
Date: |
Thu, 18 Dec 2003 20:10:52 -0500 |
User-agent: |
Mutt/1.5.4i |
On Thu, Dec 18, 2003 at 06:36:17PM -0600, Charles Duffy wrote:
> On Thu, 2003-12-18 at 17:07, James Blackwell wrote:
> > You could also save my-id, set it to what you want, do your work, and
> > set it back. This would be trivial in perl and probably trivial in
> > python as well.
>
> Certainly, it's trivial, but the issue is safety. What if the script
> errors out after my-id has been changed but before it's returned to its
> original state?
You should be a good enough coder to trap tla coring and have your script
return my-id back to what it was. ;)
> 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@hidden>"
tla dosomethingthatcores
tla my-id "James Blackwell <address@hidden>"
This would work just fine, provided you could tolerate a race for my-id if
you ran tla elsewhere.
:wq
--
James Blackwell Using I.T. to bring more 570-407-0488
Owner, Inframix business to your business http://inframix.com
GnuPG (ID 06357400) AAE4 8C76 58DA 5902 761D 247A 8A55 DA73 0635 7400
- [Gnu-arch-users] --date, Dustin Sallings, 2003/12/18
- Re: [Gnu-arch-users] --date, Charles Duffy, 2003/12/18
- Re: [Gnu-arch-users] --date, Dustin Sallings, 2003/12/18
- Re: [Gnu-arch-users] --date, Andrew Suffield, 2003/12/18
- Re: [Gnu-arch-users] --date, Jason McCarty, 2003/12/18
- Re: [Gnu-arch-users] --date, Charles Duffy, 2003/12/18
- Re: [Gnu-arch-users] --date, James Blackwell, 2003/12/18
- Re: [Gnu-arch-users] --date, Charles Duffy, 2003/12/18
- Re: [Gnu-arch-users] --date,
James Blackwell <=
- Re: [Gnu-arch-users] --date, Charles Duffy, 2003/12/18
- Re: [Gnu-arch-users] --date, Dustin Sallings, 2003/12/18
- Re: [Gnu-arch-users] --date, James Blackwell, 2003/12/18
- Message not available
- Re: [Gnu-arch-users] --date, James Blackwell, 2003/12/18
- Re: [Gnu-arch-users] --date, Dustin Sallings, 2003/12/18
- Re: [Gnu-arch-users] --date, Tom Lord, 2003/12/18
- Re: [Gnu-arch-users] --date, James Blackwell, 2003/12/18
- Re: [Gnu-arch-users] --date, Robert Collins, 2003/12/18