> Unfortunately it's not the only thing you did. > You introduced the regression that only the last occurrence of > a variable gets replaced. Your assumption was that boost returns > the first match - it's the last one instead! > > $LyXDir/component1/bin:$LyXDir/component2/bin => > $LyXDir/component1/bin:/path/to/lyx/component2/bin >
Hmm Ok. > But the goal was to avoid the replacement of a real $ in a file name. > This goal is missed if the user passes a file name with a real $ followed > by an existing variable name. Then the bug is there again. Then, indeed you need to escape the variable whenever it is a real $ in a filename, but you'd need to find all cases in which the user supplies a path and which for certain do not contain any environment variables. > > Stephan > Vincent