Re: $USER is not resolved in paths sometimes

2013-02-23 Thread Andrey Repin
Greetings, Thomas Deinhamer! >> Thomas Deinhamer wrote: >>> >>> I'm new to Cygwin, new to this newsgroup too. ;) >>> >>> I'm running Cygwin and using the zsh shell. >>> >>> In the .zshrc file I got these lines: >>> alias vboxmanage=VBoxManage >>> vboxmanage setproperty machinefolder "C:\User

Re: $USER is not resolved in paths sometimes

2013-02-23 Thread Thomas Deinhamer
Hey, thank you both for your help. VirtualBox is installed via Windows, that's why I thought that the setting for "machinepath" needs to be a Windows-like path, no? Thanks, Thomas wynfi...@gmail.com schrieb: I agree with Achim. Don't use Microsoft Windows paths. Cygwin has a function called

Re: $USER is not resolved in paths sometimes

2013-02-23 Thread wynfield
Sorry, I copied all examples with the -w option which is wrong for converting into a unix like pathname. To convert to a unix pathname use the option -u to convert to a windows pathname use -w Run: cygpath --help for more detals. and to get the output in the sell use $(...) or

Re: $USER is not resolved in paths sometimes

2013-02-22 Thread wynfield
I agree with Achim. Don't use Microsoft Windows paths. Cygwin has a function called cygpath which is very handy to use to convert paths and use in zsh and other shell scripts In zsh, using zsh syntax, I use it like this: Convert the first argument to a micrsoft window format pathname winpat

Re: $USER is not resolved in paths sometimes

2013-02-22 Thread Achim Gratz
Thomas Deinhamer writes: > I'm running Cygwin and using the zsh shell. > > In the .zshrc file I got these lines: > alias vboxmanage=VBoxManage > vboxmanage setproperty machinefolder "C:\Users\$USER\VirtualBox VMs\" You really should not use DOS paths, but if you do you should know when they will b

$USER is not resolved in paths sometimes

2013-02-22 Thread Thomas Deinhamer
Hello folks, I'm new to Cygwin, new to this newsgroup too. ;) I'm running Cygwin and using the zsh shell. In the .zshrc file I got these lines: alias vboxmanage=VBoxManage vboxmanage setproperty machinefolder "C:\Users\$USER\VirtualBox VMs\" When I try to boot a VM using vagrant (which uses vb