X-Spam-Check-By: sourceware.org Date: Thu, 12 Apr 2007 13:01:32 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Dave Korn cc: cygwin AT cygwin DOT com Subject: RE: bash: tar: command not found In-Reply-To: <016001c77d23$c18f7480$2e08a8c0@CAM.ARTIMI.COM> Message-ID: References: <461D6DBB DOT 1000301 AT cygwin DOT com> <461D7F29 DOT 10405 AT cygwin DOT com> <014a01c77d17$0206ac20$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <016001c77d23$c18f7480$2e08a8c0 AT CAM DOT ARTIMI DOT COM> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Thu, 12 Apr 2007, Dave Korn wrote: > On 12 April 2007 17:49, Jeff Hawk wrote: > > >> -----Original Message----- > >> From: Thorsten Kampe > >> Sent: Thursday, April 12, 2007 11:03 AM > > >> \cygwin\usr\bin and \cygwin\usr\lib are /real/ directories created by > >> the initial Cygwin installation routine. He shouldn't delete those > >> directories - just keep them empty... > > > > Not true... > > > > I have Cygwin installed and there is NO c:\cygwin\usr\bin directory > > > > As has been mentioned before, /usr/bin is a *mount* point, not a real > > directory. > > > > 0> mount > > C:\cygwin\bin on /usr/bin type system (binmode) <<<<<<<<<<< > > C:\cygwin\lib on /usr/lib type system (binmode) > > C:\cygwin on / type system (binmode) > > > > Like that ^^^^^^^^^^^ > > Yeh, but it helps to create a real directory to back up a mountpoint, > because that avoids a warning message. Only if you explicitly use "mount". If you let setup create the mounts for you, there is no warning message. :-) > And setup.exe is /supposed/ to create them: see do_install_thread in > install.cc: > > for (i = 0; Installer::StandardDirs[i]; i++) > { > std::string p = cygpath (Installer::StandardDirs[i]); > if (p.size()) > io_stream::mkpath_p (PATH_TO_DIR, "file://" + p); > } > > const char * > Installer::StandardDirs[] = { > "/bin", > "/etc", > "/lib", > "/tmp", > "/usr", > "/usr/bin", > "/usr/lib", > "/usr/src", > "/usr/local", > "/usr/local/bin", > "/usr/local/etc", > "/usr/local/lib", > "/usr/tmp", > "/var/run", > "/var/tmp", > 0 > }; Setup's io_stream uses Cygwin mounts. Thus, once "file:///usr" is created, mkdir_p("file:///usr/bin") is a no-op... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Freedom is just another word for "nothing left to lose"... -- Janis Joplin -- 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/