Thread: BUG #3502: pg_ctl register translates \ to /

BUG #3502: pg_ctl register translates \ to /

From
"Marc Frappier"
Date:
The following bug has been logged online:

Bug reference:      3502
Logged by:          Marc Frappier
Email address:      marc.frappier@usherbrooke.ca
PostgreSQL version: 8.2.4
Operating system:   windows XP
Description:        pg_ctl  register translates \ to /
Details:

I'm creating a windows service using the following command

"C:\Program Files\PostgreSQL\8.2\bin\pg_ctl.exe" register -N
"pgsql-8.2-test" -U bdpostgres -P "xx" -D "C:\data"

The created service is defined using / instead of \; hence it does not work
when I try to start it.

Here is the command executed by the generated service

C:/Program Files/PostgreSQL/8.2/bin/pg_ctl.exe runservice -N
"pgsql-8.2-test" -D "C:/data"