Mike Noyes wrote:
> On Tue, 2007-03-20 at 11:24, Mike Noyes wrote:
>> I just committed the lockfile replacement script Charles recommended to
>> our repository. Please look it over, and I'll try to incorporate it into
>> doc-build.sh tomorrow.
> 
> Everyone,
> I just tried to integrate lock_unlock, and ran into a problem.
> 
>         /home/groups/l/le/leaf/admin/lock_unlock: line 34: syntax error near 
> unexpected token `('
>         /home/groups/l/le/leaf/admin/lock_unlock: line 34: `          rm -f 
> ${name}.+([0-9]).+([0-9])'
> 
> Any help with this problem is appreciated. The lock_unlock file is in
> our cvs repository.

Looks like they're using extended pattern matching (the +([0-9])
portions of the rm statement, which will match any number of digits).

To make bash happy with this syntax, set extglob to on with:

  shopt -s extglob

before trying to run the lock_unlock code.

-- 
Charles Steinkuehler
[EMAIL PROTECTED]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to