[fpc-pascal] Windows backslash
Sven Barth
pascaldragon at googlemail.com
Sun Apr 28 21:03:19 CEST 2013
On 28.04.2013 13:31, Marco van de Voort wrote:
> In our previous episode, Bart said:
>>> the wrong path. So either 'make' is lying or FPC alters the path.
>>>
>>> In either case it is more a FPC issue than a Lazarus issue. The bug
>>> report should be moved to FPC.
>>
>> The compiler does not seem to have problems with constructs like:
>>
>> fpc c:\path\^-^\foo.pp @c:\path\^-^\^-^\foo.cfg at all (see bugreport
>> for an example).
>
> Maybe the ^-as-an-escape is a shell-only convention. The compiler doesn't
> work through the shell. Make probably does.
I took a look at Microsoft's documentation and indeed found something.
Take a look here
http://technet.microsoft.com/en-us/library/cc723564.aspx and look for
"Figure 2.3: Simple command syntax". Below that are some bullets where
the fourth mentions the reserved characters for the NT shell which
includes "^" which is the escape character (unlike "\" in sh and C). So
the carat needs to be escaped as "^^".
As a sidenote: I didn't know up to now that the prompt in the NT shell
can also be modified O.o
Note 2: Maybe the PowerShell will have a bit different rules, I don't
know...
Regards,
Sven
More information about the fpc-pascal
mailing list