#520 Filenames on command-line are not resolved correctly.

Program (402)

Filenames on the command-line are not resolved

Filenames on the command line are sometimes not
resolved correctly if they contain symbolic links that
refer to .. (the up-one-level directory).

It looks like .. is being evaluated prior to resolving
the symbolic link, rather than resolving the symbolic
link first.

For example, take the following directory tree:

> tree -F /dirA

|-- dirB/
| `-- dirC -> ../dirX/dirY/
`-- dirX/
|-- dirY/
`-- fileZ

With the command

> nc /dirA/dirB/dirC/../fileZ

nEdit tries to open the file '/dirA/dirB/fileZ'.

Other Unix commands (for example: ls, cat, vi) resolve
the filename to '/dirA/dirX/fileZ', which is (in my
opinion) the file that nEdit should open.

This appears to be a Linux issue, since nEdit on
Solaris opens the correct file.

Here is the information about my nEdit configuration:

NEdit 5.5
Sep 30, 2004

Built on: Linux, 386, GNU C
Built at: Oct 1 2004, 15:55:40
With Motif: 2.1.30 [@(#)Motif Version 2.1.30]
Running Motif: 2.1 [unknown]
Server: Hummingbird Communications Ltd. 7110
Visual: 24-bit TrueColor (ID 0x23, Default)
Locale: C

PS -- Sorry about the duplicate ticket. I thought I
was logged in.


  • Thorsten Haude

    Thorsten Haude - 2006-04-01

    Logged In: YES

    >PS -- Sorry about the duplicate ticket. I thought I
    >was logged in.

    You still aren't.

  • Thorsten Haude

    Thorsten Haude - 2006-09-17
    • assigned_to: nobody --> yooden

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks