Menu

OS: Win: / instead of \

TXS - Help
2015-10-05
2015-10-08
  • Peter Gutmann

    Peter Gutmann - 2015-10-05

    Hi,

    I updated to 2.10.2 and I ever used a "user command" to interact with Bazaar. This worked quite well, but now I get an error message that some paths could not be found. I think this is because I use the command

    "Path_To_EXE" ?a"
    

    The ?a" gets to C:/Users/JohnDoe/... and I would need C:\Users\JohnDoe... (backslash instead of slash). I think in earlier versions of TeXstudio this worked well.

    Can somebody help me please?

    Thanks,
    Peter

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-10-06

    Works here. What's exactly the error message you get? Do you have a multi-file document? Please try to work out a minimal example.

     
  • Peter Gutmann

    Peter Gutmann - 2015-10-07

    Hi Tim,

    thanks for your quick answer.

    I tested a bit more and I think I found the problem:

    I've got a user command containing:

    "D:/Users/JohnDoe/test.bat" ?a"
    

    The 'test.bat' file contains:

    @echo off
    set param=%1
    echo %param%
    

    When executing this command one any file (e.g.: 'D:\Users\JohnDoe\test\test.tex') with TeXstudio 2.10.2 I get:

    Process started: "D:/Users/JohnDoe/test.bat" "D:\Users\JohnDoe\test\"
    
    D:\Users\JohnDoe\test\"
    
    Process exited normally
    

    With TeXstudio 2.9.4 I get:

    Process started: "D:/Users/JohnDoe/test.bat" "D:\Users\JohnDoe\test\"
    
    D:\Users\JohnDoe\test\
    
    Process exited normally
    

    The difference is the " (quotation mark) in the second line and I think this causes the problem I get with the external program which I try to execute.

    I hope I explained, so it is reproducible.

    Thanks,
    Peter

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-10-07

    fixed: hg 5578 (6400c5c2bb1b)

    The \" at the end was erronously interpreted as a literal quote. Will be fixed in the next release. If your path does not contain spaces, you can switch to "D:/Users/JohnDoe/test.bat" ?a) as a workaround, which leaves out the quoting around the argument.

     
  • Peter Gutmann

    Peter Gutmann - 2015-10-08

    Thank you very much.

     

Log in to post a comment.

MongoDB Logo MongoDB