qt-interest@trolltech.com
[Top] [All Lists]

Re: AW: bug in QFileInfo (?)

Subject: Re: AW: bug in QFileInfo ?
From: Bo Thorsen
Date: Wed, 12 Dec 2007 10:33:14 +0100
On onsdag den 12. December 2007, Thiago Macieira wrote:
> On Wednesday 12 December 2007 10:02:30 Peter Prade wrote:
> > >   QFileInfo("/home/thiago/.").parent() == QDir("/home/thiago")
> >
> > "/home/thiago/." is equivalent to "/home/thiago" so it should be:
> >   QFileInfo("/home/thiago/.").parent() == QDir("/home")
> >
> > and if "." is "/home/thiago" then shouldnt it be:
> >   QFileInfo(".").parent() == QDir("/home") // or QDir("..")
>
> Sorry, I don't agree.

zsh, bash, and tcsh all agree with Peter on this one. Doing a
"cd /home/bo/./.." sends me to /home.

Bo.

-- 

Thorsen Consulting ApS - Qt consulting services
http://www.thorsen-consulting.dk

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>