backslash in v7 scripts

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

backslash in v7 scripts

Post by snibgo »

Tested in v7.0.7-28, pre-built binary, on Windows 8.1.

The usual Windows backslash delimiter for directories doesn't work when used within v7 scripts.

For example, we have a simple script file backsl.scr:

Code: Select all

+write \temp\r2.png NULL:
And we run this command:

Code: Select all

magick rose: -script backsl.scr
The command creates the file called "tempr2.png" in the current directory.


The equivalent simple command works as it should:

Code: Select all

magick rose: \temp\r1.png
snibgo's IM pages: im.snibgo.com
Post Reply