From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19963: 25.0.50; Unable to create a directory with name same as an existing file Date: Fri, 27 Feb 2015 23:48:59 +0200 Message-ID: <83vbin3u0k.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425073769 18415 80.91.229.3 (27 Feb 2015 21:49:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2015 21:49:29 +0000 (UTC) Cc: 19963-done@debbugs.gnu.org To: Kaushal Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 22:49:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YRSma-0000nb-Ip for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 22:49:16 +0100 Original-Received: from localhost ([::1]:39143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSmZ-0002Me-JP for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 16:49:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSmV-0002Ka-0F for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:49:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRSmR-0001wd-QW for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:49:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSmR-0001wY-No for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:49:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YRSmM-0005yP-GP for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:49:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Feb 2015 21:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 19963 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 19963@debbugs.gnu.org, eliz@gnu.org, kaushal.modi@gmail.com Original-Received: via spool by 19963-done@debbugs.gnu.org id=D19963.142507373022939 (code D ref 19963); Fri, 27 Feb 2015 21:49:02 +0000 Original-Received: (at 19963-done) by debbugs.gnu.org; 27 Feb 2015 21:48:50 +0000 Original-Received: from localhost ([127.0.0.1]:60256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRSmA-0005xv-1C for submit@debbugs.gnu.org; Fri, 27 Feb 2015 16:48:50 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:59031) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRSm7-0005xf-0I for 19963-done@debbugs.gnu.org; Fri, 27 Feb 2015 16:48:48 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NKG00P009AI7B00@mtaout29.012.net.il> for 19963-done@debbugs.gnu.org; Fri, 27 Feb 2015 23:44:30 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKG00LXE9Q6TI40@mtaout29.012.net.il>; Fri, 27 Feb 2015 23:44:30 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99885 Archived-At: > From: Kaushal > Date: Fri, 27 Feb 2015 19:56:30 +0000 > > If a folder has a file "a.b", I can't create a folder named "a.b" in the same > parent folder. As expected. > Unix allows have a file and a directory with the same name in the same parent > folder. Not here, it doesn't: eliz@fencepost:~/ttttttt$ touch a.b eliz@fencepost:~/ttttttt$ ls a.b eliz@fencepost:~/ttttttt$ mkdir a.b mkdir: cannot create directory `a.b': File exists eliz@fencepost:~/ttttttt$ A directory is just a special kind of file on most filesystems, and like a file, it has an entry in its parent directory. So there cannot be a file and a directory with the same name, because there can be 2 identical entries in their parent directory. This is not a bug in Emacs, this is a limitation of the underlying filesystem to which Emacs heeds. I'm closing this bug.