<div dir="ltr">fun parseMlbPathVar (line: String.t) =<br>&nbsp;&nbsp; case String.tokens (line, Char.isSpace) of<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [var, path] =&gt; SOME {var = var, path = path}<br>&nbsp;&nbsp;&nbsp; | _ =&gt; NONE<br><br>:-(<br><br>What&#39;s the right way to fix this, given the documentation says: &quot;The format of an <tt>mlb-path-map</tt> file is a sequence of lines; each line consists of two, white-space delimited tokens.  The first token is a path variable <tt>VAR</tt>
and the second token is the path to which the variable is mapped. The
path may include path variables, which are recursively expanded.&quot;<br><br>Could we change the semantics to be: cut first word up to first whitespace =&gt; that&#39;s the variable. Trim leading and trailing whitespace of the remainder =&gt; that&#39;s the path? It would require changing the &quot;specification&quot;, but would be backwards compatible.<br>
<br>Leading and trailing whitespace are always supported via<br>CRAZY ./&nbsp; my evil directory name /<br><br></div>