Commit 4eb2a52e authored by sof's avatar sof
Browse files

[project @ 2003-02-13 15:20:27 by sof]

upd wrt spacy filenames
parent 385df038
......@@ -10,14 +10,20 @@ The installer that installs GHC on Win32 also sets up the file-suffix associatio
for ".hs" and ".lhs" files so that double-clicking them starts <command>ghci</command>.
</para>
<para>
One little hitch happens if you right-click on a file, select "Open With..." and
then pick <command>ghci</command>. If the filename has spaces in, what will happen is
that GHC will get invoked like this:
Be aware of that <command>ghc</command> and <command>ghci</command> do
require filenames containing spaces to be escaped using quotes:
<programlisting>
c:\ghc\bin\ghci \Documents and Settings\MyFile.lhs
c:\ghc\bin\ghci "c:\\Program Files\\Haskell\\Project.hs"
</programlisting>
So it looks to GHC as if there are three arguments, "\Documents", "and", and "Settings\MyFile.lhs".
<para>
If the quotes are left off in the above command, <command>ghci</command> will
interpret the filename as two, "c:\\Program" and "Files\\Haskell\\Project.hs".
</para>
<!-- not clear whether there are current editions of Win32 OSes that
doesn't do this by default.
<para> Solution: don't use "Open With...", avoid spaces in file names,
or fiddle with the appropriate registry setting:
<programlisting>
......@@ -26,8 +32,8 @@ or fiddle with the appropriate registry setting:
Notice how the "%1" argument is quoted (or not).
</para>
<para> This problem doesn't occur when double-clicking.
</para>
-->
</sect1>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment