X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0	tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Thomas Deinhamer <thasmo@gmail.com>
Subject: $USER is not resolved in paths sometimes
Date: Fri, 22 Feb 2013 22:53:30 +0100
Lines: 28
Message-ID: <kg8pct$bnq$1@ger.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Postbox 3.0.7 (Windows/20130120)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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 vboxmanage internally I think) sometimes
$USER is not resolved to the real username.

Instead vboxmanage creates a new machinefolder
on C:/ which is then called "Users$USER" and
inside this folder there is the folder "VirtualBox VMs",
so the wrong path is "C:\Users$USER\VirtualBox VMs\".

How could that be? Sometimes it works, sometimes it doesn't.

Do I need to escape the backslashes or is
there anything else I need to take care of?

I'm wondering why it only fails sometimes.

Thanks a lot,
Thomas


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

