X-Spam-Check-By: sourceware.org Message-ID: <45206395.8070204@cygwin.com> Date: Sun, 01 Oct 2006 20:55:49 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: mssing packages for cygwin References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Tom Lee wrote: >> According to Tom Lee on 9/30/2006 11:24 PM: >> > >> > I don't undersand why "ls c:/test" works but not for >> > "tar cvf test.tar c:/test" >> >> Because ls does not parse its arguments, but upstream tar treats c:/test >> as meaning open the file /test on the remote machine named c; and because >> I'm not in the mood to patch either ls or tar from what the upstream >> packages provide. For cygwin programs in general, POSIX paths will work, >> but you are lucky if DOS paths happen to work, since the point of cygwin >> is to provide a Linux emulation (aka POSIX-like behavior), and DOS paths >> are not supported in Linux. > > For postx-like behavior, I find that djgpp mv.exe allows me to run > mv *.txt /my/directory/ or mv *.txt c:/my/directory/ > in the c drive > > while cygwin have to use: > mv *.txt /cygdrive/c/my/directory/ > > do you think ignoring /cygdrive/c would be an advantage to reduce the > typing? If you installed Cygwin in the root directory of your C drive, 'mv *.txt /my/directory' does what you suggest. If you didn't, it moves it to whatever directory you installed Cygwin in (default = C:/cygwin). "/" is the POSIX root directory and is mounted as such. If you try to think of POSIX paths in terms of DOS drive letters, you're just going to end up confusing yourself. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/