copSSH and cygwin - Can't use windows style paths
- by DrFredEdison
I setup copSSH on one of my windows servers, and within the copSSH bash shell, I can't seem to use windows-style paths to remove and copy files. If I do try, I get the following:
$ /bin/cp -r C:/Domains/_temp/collage_push/* C:/Domains/collage/
cygwin warning:
MS-DOS style path detected: C:/Domains/_temp/collage_push/
Preferred POSIX equivalent is: /cygdrive/c/Domains/_temp/collage_push/
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
I have created a windows environment variable CYGWIN set to nodosfilewarning. It has no effect. I added
export CYGWIN=nodosfilewarning
to my .bashrc and doing a
echo $CYGWIN
in my ssh session confirms it is indeed getting set; yet again, it has no effect
finally, I noted that when not doing my own export that CYGWIN contains "nontsec binmode" (no quotes), so I tried:
export CYGWIN="nodosfilewarning nontsec binmode"
in my .bashrc and still no dice. Older versions of CopSSH didn't have this issue. How can I actually override this error? I have a lot of scripts that already use windows-style paths, and I'd rather not change them if possible.