I'm using bash, version 4.3.42(4)-release (i686-pc-cygwin) on cygwin. I want to create a symlink C: -> /cygdrive because a vagrant build process has that file path specified. The vagrant script has already created some filesystem entity called C:$ ls -lhatotal 8.0Kdrwxrwxr-x+ 1 user Domain Users 0 Oct 27 15:55 .drwxrwxr-x+ 1 user Domain Users 0 Oct 27 15:55 ..drwxrwxr-x+ 1 user Domain Users 0 Oct 27 14:59 C:But it's not actually linked to the C: drive:$ ls C:$This C: thing works in other shells based on cmd.exe, such as msysgit, but cygwin doesn't understand it.#<R10K::Task::Module::Sync:0x38c6010> failed while running: Command git --git-dir C:/cygwin/home/user/vagrant/puppet/modules/profile/.git --work-tree C:/cygwin/home/user/vagrant/puppet/modules/profile remote set-url cache C:/cygwin/home/user/.r10k/git/ssh---git@git.highlights.com-7999--vagrant-profile.git exited with 128: fatal: No such remote 'cache'But the file exists:$ ls puppet/modules/profile/.gitconfig  description  HEAD  hooks  index  info  logs  objects  packed-refs  refsI'm having problems specifying C: as a filename. $ ln -s /cygdrive/c C:ln: target C: is not a directory: No such file or directory$ ln -s /cygdrive/c C\:ln: target C: is not a directory: No such file or directory$ ln -s /cygdrive/c C\:ln: failed to create symbolic link C\\:: No such file or directory$ cdrive=C:$ ln -s /cygdrive/c $cdriveln: target C: is not a directory: No such file or directoryHow can I create this symlink? Edit Solutions suggested in comments about a lowercase c: don't work in my vagrant script. It seems to need the C: (see the vagrant error I listed aboe, it tries to access the path C:/cygwin/home/user/...
Creating a symlink with a colon in the name on cygwin bash
filenames;symlink;cygwin
ln -s /cygdrive/c ./C:Thanks! @StphaneChazelasI posted this under my own account so this question would have an answer not buried in the comments. This is after I just discovered my own question while googling it :S