bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: symbolinc links bug


From: Chet Ramey
Subject: Re: symbolinc links bug
Date: Mon, 19 Nov 2001 09:17:24 -0500

> Machine Type: i586-mandrake-linux-gnu
> 
> Bash Version: 2.05
> Patch Level: 1
> Release Status: release
> 
> Repeat-By:
> [vitaly@uranus tmp]$ mkdir -p a/b
> [vitaly@uranus tmp]$ mkdir -p a/c
> [vitaly@uranus tmp]$ ln -s a/b d
> [vitaly@uranus tmp]$ cd d
> [vitaly@uranus d]$ cd ../c

You know, by any reasonable interpretation, and according to POSIX.2,
this should fail unless you use `cd -P'.  I'm not sure that the shell
isn't doing users a disservice by succeeding here.

I'll probably make this fail in a future bash version.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]