Path: csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!169.228.66.3.MISMATCH!ihnp4.UCSD.Edu!usenet.stanford.edu!not-for-mail From: Eric Blake Newsgroups: gnu.bash.bug Subject: Re: wrong prompt and cd to root Date: Sat, 7 Nov 2015 11:16:53 -0700 Organization: Red Hat, Inc. Lines: 71 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kQ0WATFTIgo03uA60b5nee9NLaFGIV9AH" X-Trace: usenet.stanford.edu 1446920225 9727 208.118.235.17 (7 Nov 2015 18:17:05 GMT) X-Complaints-To: action@cs.stanford.edu To: Seyyed Razi Alavizadeh , bug-bash@gnu.org, bash@packages.debian.org Envelope-to: bug-bash@gnu.org Openpgp: url=http://people.redhat.com/eblake/eblake.gpg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1446920215; bh=TbAjebz/7sFtAoA4Vu7PIod+r/IslWiEOpAbI0larN8=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=eRYH8NiaQbf4+vqXCPD5YKsDB6t91heXcx2IhHnE5seV7eeJdTF1VjHHVsQQtgC+Q 9AKQfS0m0N8MEfcukeO/HfO8GKx6/pvHN/61pHgzi87AnyOlv/zu0hJJshREyYZbNv NizlIso4jL/iOXAQ4rgOb/yg2QXH77HpWnwncIU67AlQRJW9Cp8MSpBFhNp3zuVoic 0i2JMVsGNSw5VmiHy0cxBeN0zjQBWiFRlAlxKPxlvNIDF+TpI55VaEICS5Exl7dmxr gnWeU5Od6igRA+gtzRunnHlxfpawSqAW6pNDvJ4bxCKhcRQswUF859mKwpFnZITfTu cyH1gr4RACDVQ== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 96.114.154.165 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Received-Bytes: 5095 X-Received-Body-CRC: 2386526079 Xref: csiph.com gnu.bash.bug:11847 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kQ0WATFTIgo03uA60b5nee9NLaFGIV9AH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/06/2015 07:14 PM, Seyyed Razi Alavizadeh wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i686 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM=3D'bash' -DCONF_HOSTTYPE=3D'i686' > -DCONF_OSTYPE=3D'linux-gnu' -DCONF_MACHTYPE=3D'i686-pc-linux-gnu' > -DCONF_VENDOR=3D'pc' -DLOCALEDIR=3D'/usr/share/locale' -DPACKAGE=3D'bas= h' -DSHELL > -DHAVE_CONFIG_H -I. -I../. -I.././include -I.././lib > -D_FORTIFY_SOURCE=3D2 -g -O2 -fstack-protector-strong -Wformat > -Werror=3Dformat-security -Wall > uname output: Linux Razi-MM061 4.2.0-16-generic #19-Ubuntu SMP Thu Oct = 8 > 14:46:51 UTC 2015 i686 i686 i686 GNU/Linux > Machine Type: i686-pc-linux-gnu >=20 > Bash Version: 4.3 > Patch Level: 42 > Release Status: release >=20 > Description: > wrong prompt and cd to root >=20 > Repeat-By: > command "cd //" works and show prompt as "//$" That's the correct behavior. > Expected that "cd //" doesn't work or at least after CDing to root dir > Terminal shows prompt as "/$" POSIX requires that paths of // be preserved literally, because it has implementation-defined semantics. If you are using a Linux kernel, // is implementation-defined as a synonym for /, but on other platforms, such as Cygwin, // is a distinct location (the root of //machine/share/path notation) from /. Bash preserves the spelling of // on all platforms, rather than trying to figure out whether // is a synonym for /. So there is no bug here. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --kQ0WATFTIgo03uA60b5nee9NLaFGIV9AH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWPkAWAAoJEKeha0olJ0Nq0cIH/j9nmPjEbIXUlLt0PWPo3N7O MCLJ5o8ecLtFZwYv8FQmPgkMi20LjZqyvGB/4+ZKIgefWDF+Cf/9ScXuIZ8BjFxK rvlvO/uR8OkxqLoqsaTRuJtwv55bbMjsjMwJvfmm3s9spvqi8WNXkuCn/R2dKp4D 3onNQonHAsNAU5ZGf4fOHiJvRf1iIEubbISmz0IVabjKtjD+ctIdI2TKLoijeAdi 3ZU/Ub73iqtjeM1lXd9S/A/NVcQc1jd1kCKSe6wqaSt3DRHSgtpdj3zLByM3QERE PCtac/P9ybDppgtkFGkG/L2K22cHGkxqeP9etM9E7d8bFl/yySI8kjOFfkJ1NfY= =gttz -----END PGP SIGNATURE----- --kQ0WATFTIgo03uA60b5nee9NLaFGIV9AH--