Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.palinacquisition!news.posted.palinacquisition.POSTED!not-for-mail NNTP-Posting-Date: Tue, 21 Jun 2011 19:54:31 -0500 Date: Tue, 21 Jun 2011 17:54:30 -0700 From: Peter Duniho User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: CLI Java Glitch References: <4dffe2ea$0$57121$c30e37c6@exi-reader.telstra.net> <7ba20719biasrlu0druv0dta3midgp9bl8@4ax.com> In-Reply-To: <7ba20719biasrlu0druv0dta3midgp9bl8@4ax.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 41 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 50.46.118.188 X-Trace: sv3-er15KVIX8p7wwseEHCMQutdt02043KcVDT74urxoCN+MgAjxuWi2u+hWLqUulMYBlmhF3vdqPR0D7OM!SRkADkugP9cj9RbH21cUuo+xzMUgCQUvYpKJW98DwglLjUvh3Nqr/kftpUuON3qT9msHDZmO7JKy!TywTC1z+RHtMGJzVtS6CsEiUmIar2QyKEUn1JjA+Oco= X-Complaints-To: abuse@iinet.com X-DMCA-Complaints-To: abuse@iinet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2940 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5504 On 6/21/11 4:37 PM, Gene Wirchenko wrote: > On Tue, 21 Jun 2011 15:11:41 -0700, Peter Duniho > wrote: > > [snip] > >> Speaking of "shoddy", some might consider it "shoddy" to call the >> _operating system_ "case-insensitive" when in fact it's the _file >> system_ that is case-insensitive. > > Please do not nitpick. I have been known to nitpick, but making a distinction between operating system and file system is far from that. > [...] > Search for the name in the case-insensitive filesystem. You've already got a problem right there, since it's not really up to Java to decide whether it's dealing with a case-sensitive file system or not. It shouldn't care. > if number of files found=0 > throw file not found > else if number of files found=1 > run the file found (regardless of case) And you've got a problem there too: the name provided by the user is a _Java_ name, and the language _is_ case-sensitive. It's an implementation error for Java to behave in a case-insensitive way. > else > { > Is one of the filename a match case-sensitively? > if yes > run that matching file > else > throw ambiguous name > } See above.