delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
X-Authority-Analysis: | v=1.0 c=1 a=iCZ24PropGAA:10 a=8nJEP1OIZ-IA:10 a=cXTFN1CxLtHB7IGWIOsA:9 a=KiJgAsO0JefhhMpfKiA8GJ40hkAA:4 a=wPNLvfGTeEIA:10 a=bjnPt_JQPIw7tH6G:21 a=l8qZMHzG6I5mNH1M:21 |
Message-ID: | <4CA5A945.1040806@charter.net> |
Date: | Fri, 01 Oct 2010 05:26:29 -0400 |
From: | SJ Wright <sjwright68 AT charter DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: use the list of files stored in a text file and process it |
References: | <loom DOT 20100929T172802-227 AT post DOT gmane DOT org> <4CA492AA DOT 6020104 AT charter DOT net> <AANLkTinE_JABqqC=ST0F4zJL3gcR+yg6+HLPZSXZ6f6v AT mail DOT gmail DOT com> |
In-Reply-To: | <AANLkTinE_JABqqC=ST0F4zJL3gcR+yg6+HLPZSXZ6f6v@mail.gmail.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Csaba Raduly wrote: > On Thu, Sep 30, 2010 at 3:37 PM, SJ Wright wrote: > >> I know one of the trip-ups I often have if I spend any time away from a >> L/Unix environment has to do with the "mv" command: I often forget that it >> prefers absolute paths from root folders (or in the case of Cygwin, virtual >> ones taken as real) or dot-dot-slash relative path syntax to just >> "/god-directory/" or what-have-you. Many other commands, particularly ls and >> ln -s, are likewise "particular about their paths." >> > > (general "you" meant below) > Unix commands are not "particular about their paths". They just trust > you to give the correct file names. If the file name does not begin > with a slash, it is relative to the current directory. That may or may > not be what you intended. Using absolute paths ensures that the > meaning of a filename is not influenced by the current directory; but > using relative paths is often shorter. If you have trouble remembering > what the current directory is, try setting the prompt to always print > the current directory, like this: > > PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\t \$ ' > > Careless of me to promulgate a baseless assertion. Cygwin and Unix are simply tools: they can do no more, and be credited or blamed with no more, than their makers or users direct them or design them to do. SJ Wright -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |