Hi Greg,
Did fixing this have any effect on the problem you reported earlier
with the cache file system? (i.e. that the staged file winds up in the
index area instead of the cache filesystems themselves).
Pete
On Thu, Nov 11, 2004 at 07:59:52PM -0500, Gregory J. Sharp wrote:
> Some irony - I am reporting a bug that I induced with a previous bug
> report ... sorry about that.
>
> mps_Stage, on or about line 679 should be changed from
>
> while( <CONFIG> ) {
> s/#.*$//; #remove comments
> ($var, $val) = split("\s",$_,2);
> ($x, $val) = split("\s", $val,2) if $val =~ /^= /; # remove =
>
> to
>
> while( <CONFIG> ) {
> chomp;
> s/#.*$//; #remove comments
> ($var, $val) = split(/\s/,$_,2);
> ($val) = (split(/\s/,$val,2))[1] if $val =~ /^= /; # remove =
>
> The chomp is not essential, but right.
> The /\s/ is a pattern. The string "\s" is just "\s", so it splits on
> the letter s.
> The change to the last line is because $x is not needed, and this makes
> that clearer ;-)
>
> --
> Gregory J. Sharp email: [log in to unmask]
> Wilson Synchrotron Laboratory url:
> http://www.lepp.cornell.edu/~gregor
> Dryden Rd ph: +1 607 255 4882
> Ithaca, NY 14853 fax: +1 607 255 8062
>
-------------------------------------------------------------------------
Peter Elmer E-mail: [log in to unmask] Phone: +41 (22) 767-4644
Address: CERN Division PPE, Bat. 32 2C-14, CH-1211 Geneva 23, Switzerland
-------------------------------------------------------------------------
|