delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/03/05:53:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <3938CF34.CDDF5E84@vinschen.de>
Date: Sat, 03 Jun 2000 11:26:12 +0200
From: Corinna Vinschen <corinna AT vinschen DOT de>
Reply-To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: "Tolkin, Steve" <Steve DOT Tolkin AT fmr DOT com>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: rm does not remove; ls tem* does not find temp; echo ~foo
References: <F614BF868E0DD411A5A700508B957E0038D017 AT MSGBOS679NTS DOT fmr DOT com>

"Tolkin, Steve" wrote:
> 3.  Why doesn't ls tem* find the directory named temp ?

Your TEMP directory has uppercase characters in it's name.
The pattern matching is case sensitive by default.
If you call `ls temp', no pattern matching takes place,
so the directory is found because the Windows file systems
aren't case sensitive but only case preserving.

> 580/temp> rm *.tmp
> 
> -- No error message but the files are still there !

The files you are trying to rm are currently in use by
another app. Cygwin has saved your rm request and will
try to remove the files as soon as they are not
exclusively locked by the other app.

> -- I start to suspect the leading tilde
> 
> 588/temp> echo ~
> /usr/home
> 589/temp> echo ~a
> 
> -- A blank line is emitted.  Why?

Because there's no user `a'. The behaviour of the tilde
is intentionally. ~ = $HOME of the current user, ~foo =
$HOME of user foo. You may use it as a convenient abbreviation
in paths. If you don't want that, use quotes.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019