From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 12 11:40:56 2014 Received: (at submit) by debbugs.gnu.org; 12 Feb 2014 16:40:56 +0000 Received: from localhost ([127.0.0.1]:49147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDcrn-0003y1-N1 for submit@debbugs.gnu.org; Wed, 12 Feb 2014 11:40:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57701) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDb4R-0000eN-9v for submit@debbugs.gnu.org; Wed, 12 Feb 2014 09:45:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDb4L-0000TC-5b for submit@debbugs.gnu.org; Wed, 12 Feb 2014 09:45:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDb4K-0000T8-SW for submit@debbugs.gnu.org; Wed, 12 Feb 2014 09:45:45 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDb4J-00082m-HK for bug-coreutils@gnu.org; Wed, 12 Feb 2014 09:45:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDb4I-0000Sj-Qb for bug-coreutils@gnu.org; Wed, 12 Feb 2014 09:45:43 -0500 Received: from mail-yh0-x22a.google.com ([2607:f8b0:4002:c01::22a]:49158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDb4I-0000Sd-L3 for bug-coreutils@gnu.org; Wed, 12 Feb 2014 09:45:42 -0500 Received: by mail-yh0-f42.google.com with SMTP id a41so8599695yho.29 for ; Wed, 12 Feb 2014 06:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ToM60o4w/20CAv8vtWgTSt6tTf64Lk2LOUGF7KO3yak=; b=DxM8m6lmom99s5PKiWebTrWNfr3G6GNkkI2BCMoklI/62rT1pCL6kO0Smry7fRUGdg lo3zxXEc9Un1MNcn4DCz1LGMDQjucSgV8xoThiBQ4yJEe1/PwiVTQUxQkuDrwlfbJw+D A7AhxFHJZPpfKU+6Ar/mUnbbjCLm8wRP3u0VT5ttz++GnTwpEozbSPAPZQ6OtGx3yr3f P34Vkp27YLC76RgE0znSKCwE0LMvnTPYOCBuipY1WzUBYmXy/bmfQlsJOSZxJiQVw6it mU81mMYIyLVbi7ATXpwl1/FtIeL+cMSjEeykLHJaiVWeXTZ9LKcdivAcGCUNkSczMI/A gzYA== X-Received: by 10.236.126.162 with SMTP id b22mr2556221yhi.72.1392216341462; Wed, 12 Feb 2014 06:45:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.123.216 with HTTP; Wed, 12 Feb 2014 06:45:01 -0800 (PST) From: Radko Dinev Date: Wed, 12 Feb 2014 16:45:01 +0200 Message-ID: Subject: ls -dF double trailing slash bug To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=20cf301af6057bc3ce04f236a032 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 12 Feb 2014 11:40:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --20cf301af6057bc3ce04f236a032 Content-Type: text/plain; charset=UTF-8 user@host ~$ ls -dF somedir somedir/ user@host ~$ ls -dF somedir/ somedir// Notice the double trailing slash which shouldn't be there in the second example. --20cf301af6057bc3ce04f236a032 Content-Type: text/html; charset=UTF-8
user@host ~$ ls -dF somedir
somedir/

user@host ~$ ls -dF somedir/
somedir//

Notice the double trailing slash which shouldn't be there in the second example.

--20cf301af6057bc3ce04f236a032-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 12 11:52:38 2014 Received: (at control) by debbugs.gnu.org; 12 Feb 2014 16:52:38 +0000 Received: from localhost ([127.0.0.1]:49161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDd38-0004Jv-73 for submit@debbugs.gnu.org; Wed, 12 Feb 2014 11:52:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41857) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDd35-0004Jb-5N; Wed, 12 Feb 2014 11:52:36 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1CGqW2t032128 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Feb 2014 11:52:32 -0500 Received: from [10.3.113.60] (ovpn-113-60.phx2.redhat.com [10.3.113.60]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s1CGqVeX014718; Wed, 12 Feb 2014 11:52:32 -0500 Message-ID: <52FBA6CF.5040900@redhat.com> Date: Wed, 12 Feb 2014 09:52:31 -0700 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Radko Dinev , 16730-done@debbugs.gnu.org Subject: Re: bug#16730: ls -dF double trailing slash bug References: In-Reply-To: X-Enigmail-Version: 1.6 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LixcJJJ5vERDNxp3aij3sdRntdOHIaPHe" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LixcJJJ5vERDNxp3aij3sdRntdOHIaPHe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 16730 notabug thanks On 02/12/2014 07:45 AM, Radko Dinev wrote: > user@host ~$ ls -dF somedir > somedir/ >=20 > user@host ~$ ls -dF somedir/ > somedir// >=20 > Notice the double trailing slash which shouldn't be there in the second= > example. Not a bug. Consider: $ touch '*' $ chmod +x '*' $ ls -F '*' ** ls -F is merely appending the indicator on the end of the name as you typed it in, even if it results in what looks like a double indicator. Where it gets interesting is on systems where / and // are distinct, but for consistency, we still do: $ \ls -Fd / // // /// --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --LixcJJJ5vERDNxp3aij3sdRntdOHIaPHe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJS+6bPAAoJEKeha0olJ0NqsbcH/2dLNGWIUWOJZhW9HM1fJhT9 IobCM2QLUm3ZG3DTsE+XtNll/49KNhOCY+6R/Ol3uhLzos1+WpamAUOO3lx/hmVx E5pBzd2OiotT3/YmNO43R+2e8KjwQd1uLY0a7ZgK9FIV70XOWcNP5jFhfswwiWQJ eaw69i14D3/lI/IEixDoxVdakvk2qpB3j4Mal37uOUW+WoY7Bj+ZqwnFW5dk6sVN Xv+Ob4mbhm8bTo5inu+Xdj7PWBOgCZXJXr36CeWYBk+kPyysoEUoS8ddbniH8SHA kcRS6CouFydE3r+qjLYOA84yrUuflva6lP/TA/KiDw2TOWmS0/MZTOtwGk65HTQ= =pTFC -----END PGP SIGNATURE----- --LixcJJJ5vERDNxp3aij3sdRntdOHIaPHe-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 12 11:59:00 2014 Received: (at 16730) by debbugs.gnu.org; 12 Feb 2014 16:59:00 +0000 Received: from localhost ([127.0.0.1]:49175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDd9I-0004Vv-0B for submit@debbugs.gnu.org; Wed, 12 Feb 2014 11:59:00 -0500 Received: from mail4.vodafone.ie ([213.233.128.170]:55478) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDd9F-0004Va-Va for 16730@debbugs.gnu.org; Wed, 12 Feb 2014 11:58:58 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApQBAPmm+1JtTZ8r/2dsb2JhbAANTYNEg1i8J4ErgxkBAQEDAQECIA8BSwsLDQsCAgUWCwICCQMCAQIBFi8HDAgBAYd5DQimNXaiMxeBKY1Xgm+BSQEDlVaEBoU9jl8 Received: from unknown (HELO [192.168.1.79]) ([109.77.159.43]) by mail3.vodafone.ie with ESMTP; 12 Feb 2014 16:58:51 +0000 Message-ID: <52FBA84A.5090107@draigBrady.com> Date: Wed, 12 Feb 2014 16:58:50 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: 16730@debbugs.gnu.org, eblake@redhat.com, radko.dinev@gmail.com Subject: Re: bug#16730: ls -dF double trailing slash bug References: <52FBA6CF.5040900@redhat.com> In-Reply-To: <52FBA6CF.5040900@redhat.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16730 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 02/12/2014 04:52 PM, Eric Blake wrote: > tag 16730 notabug > thanks > > On 02/12/2014 07:45 AM, Radko Dinev wrote: >> user@host ~$ ls -dF somedir >> somedir/ >> >> user@host ~$ ls -dF somedir/ >> somedir// >> >> Notice the double trailing slash which shouldn't be there in the second >> example. > > Not a bug. Consider: > > $ touch '*' > $ chmod +x '*' > $ ls -F '*' > ** > ls -F is merely appending the indicator on the end of the name as you > typed it in, even if it results in what looks like a double indicator. > > Where it gets interesting is on systems where / and // are distinct, but > for consistency, we still do: > > $ \ls -Fd / // > // /// Related discussion at: http://lists.gnu.org/archive/html/coreutils/2013-05/msg00024.html thanks, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 12 11:59:06 2014 Received: (at 16730) by debbugs.gnu.org; 12 Feb 2014 16:59:06 +0000 Received: from localhost ([127.0.0.1]:49179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDd9N-0004Wf-LY for submit@debbugs.gnu.org; Wed, 12 Feb 2014 11:59:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51919) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDd9K-0004Vm-Kf for 16730@debbugs.gnu.org; Wed, 12 Feb 2014 11:59:03 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1CGwuZj007790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Feb 2014 11:58:56 -0500 Received: from [10.3.113.60] (ovpn-113-60.phx2.redhat.com [10.3.113.60]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s1CGwuqF018244; Wed, 12 Feb 2014 11:58:56 -0500 Message-ID: <52FBA84F.4040209@redhat.com> Date: Wed, 12 Feb 2014 09:58:55 -0700 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: 16730@debbugs.gnu.org, radko.dinev@gmail.com Subject: Re: bug#16730: ls -dF double trailing slash bug References: <52FBA6CF.5040900@redhat.com> In-Reply-To: <52FBA6CF.5040900@redhat.com> X-Enigmail-Version: 1.6 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WFRsiRii0TMUU9CVOMsWSBQ7gdokIclr2" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 16730 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --WFRsiRii0TMUU9CVOMsWSBQ7gdokIclr2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 02/12/2014 09:52 AM, Eric Blake wrote: > ls -F is merely appending the indicator on the end of the name as you > typed it in, even if it results in what looks like a double indicator. >=20 > Where it gets interesting is on systems where / and // are distinct, bu= t > for consistency, we still do: >=20 > $ \ls -Fd / // > // /// Further note that if you add --color, you can see the difference: $ ls -Fd --color=3Dalways / // | od -tc 0000000 033 [ 0 m 033 [ 3 8 ; 5 ; 2 7 m / 033 0000020 [ 0 m / \n 033 [ 3 8 ; 5 ; 2 7 m / 0000040 / 033 [ 0 m / \n 0000047 The file name you typed is colored, while the trailing / indicator added by -F is not colored. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --WFRsiRii0TMUU9CVOMsWSBQ7gdokIclr2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJS+6hPAAoJEKeha0olJ0Nq+o8IAJTtJfYzcMGbcbhFljblwCTy WpDVHc3L6eIaM6TioxBd6Ixj6D+ormr5SBxguxjlnUB8BnVl2xBmO+Cxq3EIRJ/X G3CRL0WUQNevn1hGFzTPBnaz+T763oPRMsGEx4HNZxI5eTecl9dBiHTjVWAFO9vp Bern1+1vmW/6axSKQAvmN1Ez0rc98qN+/0BeLYJIOJqPJF0F4c01VYjC/VvvO3Oz bBlzeDlEWwpzmBG+/L6qScRI1Nz09vWudVx3OkKZSi5BCOtTECPMzbvvOYJiQOX0 PFF/cj1u9U5dEIoR7FIMHd6d8iiW+P8TY1bJw8272U65Zb25mXBEbIPfy8PM/EE= =Em9O -----END PGP SIGNATURE----- --WFRsiRii0TMUU9CVOMsWSBQ7gdokIclr2-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 12 12:16:13 2014 Received: (at 16730) by debbugs.gnu.org; 12 Feb 2014 17:16:13 +0000 Received: from localhost ([127.0.0.1]:49199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDdPw-0006Ab-Hk for submit@debbugs.gnu.org; Wed, 12 Feb 2014 12:16:13 -0500 Received: from mail-yh0-f45.google.com ([209.85.213.45]:37494) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDdPu-0006AJ-C6 for 16730@debbugs.gnu.org; Wed, 12 Feb 2014 12:16:10 -0500 Received: by mail-yh0-f45.google.com with SMTP id i57so8841340yha.32 for <16730@debbugs.gnu.org>; Wed, 12 Feb 2014 09:16:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=sdEx+8m6LbAGEaSkJkNjuZXPdaNpbrOEv71pcQ5OsRc=; b=xIqzNNwN/FtKNzgurX6gNr++xyPnUTQn3LkUO+HDspv3AsuM0Vk9mnjVBt2VVYAVmK S62rw4FoPzmy5FchVy1EEYTtHcdlR7gonQKwtU4wbmHgO1gp2ed63PqgLbJHOpY5EmH4 9b/Vuco5SFeWDTTNxmDg2tFh036Ks4xrpLeRanUEdxIFuiBtFdp2Myp0wnw7S38dkdiC xlgIth4TFm2ld3apPnEimHRxXB0EODU9Z5se+RKkzB4mo/E0t68Zws9TjyQ1xU+/LW2X NagCpo6B9cWEHxYruv334q+oOUQyQdstQmdA2PHinUcJ1HzAgG7V+UzV5c0Trgwd2Bik +1Vg== X-Received: by 10.236.144.103 with SMTP id m67mr1494544yhj.146.1392225364751; Wed, 12 Feb 2014 09:16:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.123.216 with HTTP; Wed, 12 Feb 2014 09:15:24 -0800 (PST) In-Reply-To: References: <52FBA6CF.5040900@redhat.com> <52FBA84F.4040209@redhat.com> <52FBAA95.3040601@redhat.com> From: Radko Dinev Date: Wed, 12 Feb 2014 19:15:24 +0200 Message-ID: Subject: Re: bug#16730: ls -dF double trailing slash bug To: 16730@debbugs.gnu.org Content-Type: multipart/alternative; boundary=20cf3040ed0e50413604f238bae4 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16730 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --20cf3040ed0e50413604f238bae4 Content-Type: text/plain; charset=UTF-8 I was just wondering whether ls should normalize filenames that the user typed. Eric was kind enough to clarify that this would violate POSIX. Thank you. On Wed, Feb 12, 2014 at 7:11 PM, Radko Dinev wrote: > I see. Thank you, Eric! > All the best! :) > > P. S. I accidentally mailed you not paying attention it was not the bug > I'm replying to but your email. I am sorry :) > > > On Wed, Feb 12, 2014 at 7:08 PM, Eric Blake wrote: > >> On 02/12/2014 10:03 AM, Radko Dinev wrote: >> > $ ls -d somedir >> > somedir >> > $ ls -d somedir/ >> > somedir/ >> > $ ls -d ./somedir >> > ./somedir >> > $ ls -d ./somedir/ >> > ./somedir/ >> > >> > It's the same directory being referred to in 4 different ways and shown >> > with 4 different filenames in ls. >> > Just wondering whether ls should somehow "normalize" the file name? >> >> https://rwmj.wordpress.com/2010/11/08/want-help-dont-email-me-directly/ >> >> But no, ls should not normalize file names that the user typed, as it >> would violate POSIX. >> >> -- >> Eric Blake eblake redhat com +1-919-301-3266 >> Libvirt virtualization library http://libvirt.org >> >> > --20cf3040ed0e50413604f238bae4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I was just wondering whether ls should normalize file= names that the user typed.
Eric was kind enough to clarify that this wou= ld violate POSIX.

Thank you.


On Wed, Feb 12, 2014 at 7:11 PM, Radko D= inev <radko.dinev@gmail.com> wrote:
I see. Thank you, Eric!
All the best! :)

P. S. I accidentally mailed you not pa= ying attention it was not the bug I'm replying to but your email. I am = sorry :)

On Wed, Feb 12, 2014 at 7:08 PM, Eric Blak= e <eblake@redhat.com> wrote:
On 02/12/2014 10:03 AM, Radko Dinev wro= te:
> $ ls -d somedir
> somedir
> $ ls -d somedir/
> somedir/
> $ ls -d ./somedir
> ./somedir
> $ ls -d ./somedir/
> ./somedir/
>
> It's the same directory being referred to in 4 different ways and = shown
> with 4 different filenames in ls.
> Just wondering whether ls should somehow "normalize" the fil= e name?

https://rwmj.wordpress.com/2010/11/08/want= -help-dont-email-me-directly/

But no, ls should not normalize file names that the user typed, as it
would violate POSIX.

--
Eric Blake =C2=A0 eblake redhat com =C2=A0 =C2=A0+1-919-301-3266
Libvirt virtualization library http://libvirt.org



--20cf3040ed0e50413604f238bae4-- From unknown Sat Aug 16 14:26:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 13 Mar 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator