Menu

#51 Remove double quotation when file name has space.

None
pending-invalid
nobody
None
5
2018-06-28
2018-06-28
No

On Windows (possiblely Linux has this issue too)

When file full path in input file has space, current csope requires the file name must have double quotation, etc "".
(https://stackoverflow.com/questions/3196760/how-to-use-cscope-with-paths-that-contain-spaces)

However, if the file full path has double quotation, "". ctags.exe does not support this input file.

Is it possible to remove the requirement? So whenever the file full name has space, both cscope and ctag can use the same input files.

Thanks.

Discussion

  • flyingosprey

    flyingosprey - 2018-06-28

    I file bug to cscope instead of ctags because I think "no double quotations" makes more sense. Thanks.

     
  • Hans-Bernhard Broeker

    The premise that these two tools could generally use the same input files is wrong. So there's not really much point changing either program to reach that hypothetical common ground. cscope.files lists can hold some cscope options, too, on top of just file names.

    And given it's a blank-separated list by definition, there's really no way to avoid some quoting if blanks are to be allowed as parts of file names. So while "no double quotes" might appear to make sense, it just would not work at all.

     
  • Hans-Bernhard Broeker

    • status: open --> pending-invalid
    • Group: -->
     
  • Hans-Bernhard Broeker

    Ticket moved from /p/cscope/bugs/296/

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.