On Fri, 2004-01-23 at 14:42, Ron Joffe wrote: > I got a quickie question for those of you in the know. > > By mistake one of my clients did a cd /$ORACLE_HOME where > ORACLE_HOME = /opt/oracle. > > The resultant is that their prompt showed: > > server_name://opt/oracle> > > So I played around a bit with it, and it seems that you can prepend the > extra / easily. > > The question is does this have any significance ? I did notice that this seems > to be bash shell specific, i.e. the behavior is not found in ksh or csh.
That's pretty interesting; it seems like a bash bug to me. I don't think it would matter, as consecutive slashes are always condensed to a single slash when a file is being opened, etc, but it's still odd. I noticed it only does this with exactly two slashes, and that it also shows up in the output of 'pwd' : [EMAIL PROTECTED] ~ $ cd /var [EMAIL PROTECTED] /var $ cd //var [EMAIL PROTECTED] //var $ pwd //var [EMAIL PROTECTED] //var $ cd ///var [EMAIL PROTECTED] /var $ cd ////var [EMAIL PROTECTED] /var $ rpm -q bash bash-2.05b-34 [EMAIL PROTECTED] /var $ cat /etc/redhat-release Fedora Core release 1 (Yarrow) --Jeremy, a little curious too. -- /---------------------------------------------------------------------\ | Jeremy Portzer [EMAIL PROTECTED] trilug.org/~jeremy | | GPG Fingerprint: 712D 77C7 AB2D 2130 989F E135 6F9F F7BC CC1A 7B92 | \---------------------------------------------------------------------/
signature.asc
Description: This is a digitally signed message part
-- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
