Tcl question ...

Peter Danecek Peter.Danecek at bo.ingv.it
Thu Sep 19 04:16:47 PDT 2013


Hi all,

I have little experience with Tcl, so apologise for this potentially stupid question but I failed to find the answer with some browsing.

So would like to delete some file (as a pre-patch step) to get a clean source directory before the build. When I put the file names all works fine, but I would like to be less verbose, so I am trying something like this:

--- snip ---
[radegast:~/temp/BitArray2D-2.1] petr% tclsh
% glob */*.pyc     
Examples/BitArray2D.pyc Examples/BitVector.pyc TestBitArray2D/BitArray2D.pyc TestBitArray2D/BitVector.pyc TestBitArray2D/TestBooleanLogic.pyc TestBitArray2D/TestComparisonOps.pyc TestBitArray2D/TestConstructors.pyc
% file delete Examples/BitArray2D.pyc Examples/BitVector.pyc 
% glob */*.pyc
TestBitArray2D/BitArray2D.pyc TestBitArray2D/BitVector.pyc TestBitArray2D/TestBooleanLogic.pyc TestBitArray2D/TestComparisonOps.pyc TestBitArray2D/TestConstructors.pyc
% file delete [ glob */*.pyc ]
% glob */*.pyc
TestBitArray2D/BitArray2D.pyc TestBitArray2D/BitVector.pyc TestBitArray2D/TestBooleanLogic.pyc TestBitArray2D/TestComparisonOps.pyc TestBitArray2D/TestConstructors.pyc
--- snap ---

Deleting the files works, globbing seems to work as well, but when I combine these it has no effect. Where is the error?

~petr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1762 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130919/50510dc4/attachment.p7s>


More information about the macports-dev mailing list