On Tue, Nov 11, 2008 at 4:08 AM, Eric Kow <[EMAIL PROTECTED]> wrote: > On Tue, Nov 11, 2008 at 22:44:03 +1100, Trent W. Buck wrote: >> In the same way that Debian has a "checkbashisms" script to identify >> common uses of bashisms in #!/bin/sh scripts, perhaps we could write a >> script (that need not itself be portable) that can catch people when >> they introduce gotchas that have caught us before? > > Naturally, this could also become a meta-test as part of the suite. I > invite interested people to look into adapting the haskell_policy.sh > test for this (I guess we could do without its ratification mechanism).
I like that haskell_policy.sh complains about tabs. The ratification mechanism...hmmm...It's certainly nice when it works. But, then I recently had to change it to allow a strict variant of readFile, namely Data.ByteString.readFile. I guess what I'm thinking is that, it is nice that Prelude's readFile is documented as an illegal import in an 'unforgettable' way. So, I'm saying that I don't really want to get rid of any of the existing functionality in haskell_policy.sh yet. I could imagine having test_policy.sh that enforces test policies but on shell scripts instead of haskell files. Jason _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
