<<< Date Index >>>     <<< Thread Index >>>

Re: Parent directory and "../"



* On Mon, Sep 04, 2006 Stefano Sabatini (stefano.sabatini-lala@xxxxxxxx) 
muttered:
> I'm using Mutt 1.5.12
> 
> I'm trying to define a macro to jump to the parent directory. The idea
> is to set something as: 
> 
> macro browser ^ "c^a^k.." "Jump to the parent directory"
> (^a^k are used to delete the presetted value in the command line).

I strongly recommend to use function names. More portable and readable.

Since »..« is always the first entry:
macro browser ^ '1<enter><select-entry>'

> The problem is that the path ".." seems to be interpreted as the home
> dir, since I get there. The same thing happens with "../", while "./"
> seems to be interpreted in the usual manner (actual directory).
> 
> If I select the line in the browser the "../" line then it jumps to the
> parent dir as expected. 
> 
> I also noted that when mutt appearently misbehaves the status line
> reports "Directory [..]" in the status line rather then the absolute
> basename, then when browsing the names of the dirs are interpeted
> relative to that (e.g. ../Mail).

Sounds like a bug.

HTH,

Michael
-- 
BOFH excuse #315:

The recent proliferation of Nuclear Testing

PGP-Key-ID: 0xDC1A44DD
Jabber:     init[0]@amessage.de