GBAK doesn't handle escaped path (and most likely filenames) on WIndows
We encountered customer case where user name, and therefore appdata-path contains & character.
In batch files etc it must be escaped as ^&, now in out script otherwise works, but GBAK fails to escaped path.
I (for my surprise) have not found easy workaround that would work. (for our script). So would be nice if support for these escapes would be added into the Firebird command line applications.
List of escapes: https://www.robvanderwoude.com/escapechars.php
Need only add escaping support on those characters that are legal characters in the file names and paths (Maybe just): %^& Which easily breaks the batch scripts.
-Tee-
Please provide a reproducible case that demonstrates the problem. You're now only describing a problem in prose, without demonstrating the actual problem, which makes it hard to infer what the real problem is.
As an aside, on the face of it, it sounds like a problem in your batch file, because gbak itself isn't a batch file and so gbak doesn't have to follow escaping rules that applies to batch files.
Escaping is not task for application it is done by command processor.
Please provide a reproducible case that demonstrates the problem. You're now only describing a problem in prose, without demonstrating the actual problem, which makes it hard to infer what the real problem is.
As an aside, on the face of it, it sounds like a problem in your batch file, because gbak itself isn't a batch file and so gbak doesn't have to follow escaping rules that applies to batch files.
Easy to test, just use gbak with path that contains &-character. I try to make reproducible case.
Escaping is not task for application it is done by command processor.
I think that this is just not the case. At least on windows, If I remember, I'll try to remember to build test case.