> pictools > doc > tocyg
> pictools > doc > tocyg
Pictools: Shell Script Tools
V3.3 (445)
tocyg
/pictools/tocyg
Convert file or path values to cygwin form
usage, in a shell: tocyg path

Convert a file or path value to Cygwin form. The substitutions made are

    x: => /cygdrive/x
    X: => /cygdrive/x     (converts X to lower case)
    \ => /
    ; => :
    (space) => \(space)

These substitutions will leave unchanged a cygwin-style pathname.

Note: tocyg will usually NOT work by typing in the string because backslashes are interpreted as quoting the next character and because spaces break up the argument. Tocyg has been known to work within a Makefile if

  • the entire string is in quotes
  • backslashes are doubled

Example input

 tocyg 'c:\\foo\\goo hee;f:\\gee  whiz'

corresponding output:

 /cygdrive/c/foo/goo\ hee:/cygdrive/f/gee\ \ whiz
 
Copyright © 2023 ZweiBieren, All rights reserved. Feb 5, 2023 17:05 GMT Page maintained by ZweiBieren