Re: [pure-lang-users] Proposed syntax changes
Status: Beta
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-08-16 23:47:30
|
Albert Graef wrote: >> - search the directory of the script containing the using clause >> >> - failing that, search the cwd >> >> - failing that, search PURELIB > > Thinking about this some more, I realized that this is vunerable to code > injection. What if the user inadvertently puts a module named > 'primitives.pure' into the cwd? > > Therefore I think that PURELIB should actually be searched before the > cwd (much like #include <foo.h> in C). Note that if the 'using' script > is in the cwd, then the cwd will still be searched first anyway. Also, > this will only apply to 'using' clauses, not to scripts specified on the > command line or with 'run'. Ok, this is implemented now. I also threw in some script name canonicalization and symbolic link resolution, details can be found in the ChangeLog and in the DECLARATIONS section of the manpage. The new 'using' syntax is now implemented as well, so multiple script names in one clause have to be separated with commas now. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |