using backslash in alias on linux does not work
-----------------------------------------------

                 Key: CORE-5624
                 URL: http://tracker.firebirdsql.org/browse/CORE-5624
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 2.5.7
         Environment: ubuntu linux 16.04 lts fb257 sc
            Reporter: Holger Klemt
            Priority: Minor


a backslash in alias seems to be a problem, 


this alias does not work with isql
e:\db.fdb=/db/db.fdb

this alias works fine with isql
e:/db.fdb=/db/db.fdb 

aditional Infos from Alex Peshkoff: 

This is a bug in aliases parser - slash is replaced to OS-specific slash in 
alias to resolve, 
but not replaced in an alias read from aliases.conf. I.e. if you write
e/db.fdb=/db/db.fdb
both e/db.fdb & e\db.fdb will work from isql

based on my tests, using / in alias definitions can really be used as \ from 
commandline,
but isql for example on linux needs " around connection string


Entry in aliases.conf

e:/db.fdb=/db/db.fdb

succcessful connections:

root@IFS01:/opt/firebird/bin# ./isql "127.0.0.1:e/db.fdb" -user SYSDBA 
-password masterkey
Database:  127.0.0.1:e/db.fdb, User: SYSDBA
SQL> exit;

root@IFS01:/opt/firebird/bin# ./isql "127.0.0.1:e:\db.fdb" -user SYSDBA 
-password masterkey
Database:  127.0.0.1:e:\db.fdb, User: SYSDBA
SQL>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to