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
$ ls -lha total 8.0K drwxrwxr-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: $
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:/firstname.lastname@example.org exited with 128: fatal: No such remote 'cache'
But the file exists:
$ ls puppet/modules/profile/.git config description HEAD hooks index info logs objects packed-refs refs
I'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 $cdrive ln: target ‘C:’ is not a directory: No such file or directory
How 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