difference between path / pathdef
John W. Eaton
jwe at bevo.che.wisc.edu
Thu Jan 17 02:46:49 CST 2008
On 15-Jan-2008, John W. Eaton wrote:
| On 15-Jan-2008, Ben Abbott wrote:
|
| | ## A path definition in the user octaverc has precedence over the site
| | if numel (user_pathscript)
| | try
| | eval (user_pathscript);
| | val = path;
| | catch
| | warning (['Path defined in ',user_octaverc,' produced an error'])
| | end_try_catch
|
| I think we should try to avoid the eval here. What is the format of
| user_pathscript?
I checked in the following changes to avoid eval and to also try to
properly handle paths that contain single quote characters.
Is __extractpath__ only expected to be used in pathdef? If so, why
not make it a subfunction of pathdef instead of having it in a
separate file?
jwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080117/8c54ec06/attachment-0001.ksh
More information about the Octave-maintainers
mailing list