[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Re: New commands (for mtn, in lua)
From: |
Chad Walstrom |
Subject: |
Re: [Monotone-devel] Re: New commands (for mtn, in lua) |
Date: |
Fri, 07 Sep 2007 10:14:10 -0500 |
Stephen Leake <address@hidden> wrote:
> It probably would not hurt to restrict the code to POSIX sh. I think
> you can tell Gnu bash to do that with a flag.
I have a soft-spot in my heart for GNU BASH, but such fodness only goes
so far when trying to write POSIX compatible script. BASH's commandline
--posix flag isn't fool-proof. In fact, even dash, the strictly
POSIX-compliant shell, complete with its specification bugs, isn't
fool-proof. Shell writing is more of an art than a science. You simply
cannot guarantee that the behavior expected is what you're going to get
in all cases. Keep it simple, and you're likely to get a high
percentage of success on all platforms; it's never 100%.
Writing your aliases or scripting in a single language that is already
required for the application, such as lua, WILL guarantee that wherever
monotone can run successfully, so can its helper-scripts.
I like shell scripts, I do. Sometimes they're not the answer.
Chad
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), (continued)
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Ulf Ochsenfahrt, 2007/09/06
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Markus Schiltknecht, 2007/09/06
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Matthew Sackman, 2007/09/06
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), William Uther, 2007/09/06
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Markus Schiltknecht, 2007/09/07
- Message not available
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Zbynek Winkler, 2007/09/07
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Stephen Leake, 2007/09/07
- [Monotone-devel] Re: New commands (for mtn, in lua), Koen Kooi, 2007/09/07
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Matthew Sackman, 2007/09/07
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Stephen Leake, 2007/09/07
- Re: [Monotone-devel] Re: New commands (for mtn, in lua),
Chad Walstrom <=
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), William Uther, 2007/09/06
- [Monotone-devel] Problems with mtn-0.36 precompiled binary, Sebastian Rose, 2007/09/06
- Re: [Monotone-devel] Problems with mtn-0.36 precompiled binary, Sebastian Rose, 2007/09/06
- Re: [Monotone-devel] Problems with mtn-0.36 precompiled binary, Jack Cummings, 2007/09/07
- Re: [Monotone-devel] Problems with mtn-0.36 precompiled binary, Chad Walstrom, 2007/09/07
- Re: [Monotone-devel] Problems with mtn-0.36 precompiled binary, Thomas Moschny, 2007/09/07
- Re: [Monotone-devel] Problems with mtn-0.36 precompiled binary, Jack Cummings, 2007/09/07
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Ulf Ochsenfahrt, 2007/09/07
- Re: [Monotone-devel] Re: New commands (for mtn, in lua), Eric Anderson, 2007/09/07