-a $HOME/.bashrc and -a ~/.bashrc produce different results
Thu May 19 21:00:00 GMT 2011
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
More information about the Cygwin