This is the mail archive of the
mailing list for the Cygwin project.
Re: -a $HOME/.bashrc and -a ~/.bashrc produce different results
- From: Illia Bobyr <Illia dot Bobyr at ronin-capital dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 19 May 2011 15:59:42 -0500
- Subject: Re: -a $HOME/.bashrc and -a ~/.bashrc produce different results
- References: <19A81F46A6B94CCE9372358896F3E86B@cit.wayne.edu>
On 5/19/2011 3:54 PM, Lee Maschmeyer wrote:
> Hi all,
> For most uses, $HOME and ~ produce identical results. For example, ls
> or ls ~ are the same. But the following script fails:
> for i in "$HOME/.bashrc" "~/.bashrc" ; do
> echo $i
> if [ -a "$i" ]; then
> echo "-a worked"
> echo "-a didn't work"
> if [ -e "$i" ]; then
> echo "-e worked"
> echo "-e didn't work"
Here is what I see on my box:
-a didn't work
-e didn't work
I guess the output on your box might be helpful in diagnosing the issue.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple