public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [?@yahoo.com: Found problem of floppy drive acces]
@ 2004-12-17 17:23 Eric Schweitz
  2004-12-17 17:25 ` Dave Korn
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Schweitz @ 2004-12-17 17:23 UTC (permalink / raw)
  To: cygwin

----- 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-01-02 21:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 17:23 [?@yahoo.com: Found problem of floppy drive acces] Eric Schweitz
2004-12-17 17:25 ` Dave Korn
2004-12-17 17:45   ` Dave Korn
2004-12-18  2:43     ` Gary R. Van Sickle
2005-01-02 18:44   ` Tom Hall
2005-01-02 21:53     ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).