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 Date: Fri, 17 Dec 2004 09:22:57 -0800 From: Eric Schweitz To: cygwin AT cygwin DOT com Subject: [?@yahoo.com: Found problem of floppy drive acces] Message-ID: <20041217172257.GB442@fiji.reservoir.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i ----- Forwarded message from Vijay Jaswal ----- Hello again, I found where the floppy drive was being access and it's definately a problem of Cygwin. /etc/profile is invoked when "bash --login" is used, which is used in the cygwin.bat file. Without the --login (or -l) option, /etc/profile is not touched and the floppy drives aren't either. In /etc/profile, the following block is the problem; search for "profile.d". > # Run all of the profile.d scripts > # Note that these are supplied by separate packages > # Ascending alphanumerical order enforced > if [ -d "/etc/profile.d" ]; then > while read f; do > if [ -f "${f}" ]; then > . "${f}" > fi > done <<- EOF > `/bin/find /etc/profile.d -iname '*.sh' -type f | sort` > EOF > fi The find command is invoked, and it is hitting the floppy, no matter what options are supplied: "/bin/find --version" and "/bin/find --help" both hit the floppy drive, which is clearly a blunder. BTW, /bin/df is also screwed up, but not as badly: "df ." hits the floppy, even the current directory is a harddrive, but "df --version" and "df --help" are fine and not brain-dead. So, there are bugs in a few places, but /bin/find is definately one of them. BTW, could you inform the mailing list about this (without using my email address)? -vijay ----- End forwarded message ----- -- 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/