| There are two bugs I have encountered when I try to use optionsToStr() for
| printing and reading options to and from a file:
|
| The first is that despite that the option is
|     -p"%s> "
| optionsToStr() prints it as
|     -p"> "

optionsToStr() does not exhibit this behavior on my machine, and I'm
guessing that the problem you have is in the way you are using it.
I'll bet you have code that looks something like:

   printf(optionsToStr());

Try the following instead:

   printf("%s",optionsToStr());

Remember that you want the %s sequence to be displayed literally, not
treated as a formatting placeholder for printf.

| Then the second is that despite the option is
|     -E""
| when printing out with the command :s, it prints out as
| Editor setting  : -E
|
| There is a subtle difference: The command -E means to Hugs that
| there is no
| editor available, and thus editor commands will be ignored. On the other
| hand -E"" means that an editor has been set and its name is the empty
| string, in other words, the computer is expected to know which editor is
| intended, which happens to be the case on Macs. On Macs, files have a
| creator name indicating which program the file should default a launch to,
| so an explicit editor is unneeded.
|
| Please come up with a quick fix.

My pleasure!  Try -E"%s"

All the best,
Mark

Reply via email to