Benson Margulies created FELIX-4969:
---------------------------------------

             Summary: cd refuses to leave initial directory without an extra /
                 Key: FELIX-4969
                 URL: https://issues.apache.org/jira/browse/FELIX-4969
             Project: Felix
          Issue Type: Bug
          Components: Gogo Command
    Affects Versions: gogo.command-0.12.0
            Reporter: Benson Margulies


Actually observed in gogo command 0.14.0.

The implementation of the cd command in Files.java won't permit an absolute 
pathname with ordinary syntax. 

{noformat}
basis-osgi> cd /tmp
gogo: IOException: Directory does not exist
basis-osgi>

basis-osgi> cd //tmp
Name                 gogo
Parent               /Users/benson/x/rosette-osgi
CanonicalPath        /Users/benson/x/rosette-osgi/gogo
Path                 /Users/benson/x/rosette-osgi/gogo
ParentFile           /Users/benson/x/rosette-osgi
AbsolutePath         /Users/benson/x/rosette-osgi/gogo
AbsoluteFile         /Users/benson/x/rosette-osgi/gogo
CanonicalFile        /Users/benson/x/rosette-osgi/gogo
TotalSpace           999334871040
FreeSpace            247179890688
UsableSpace          246917746688
{noformat}

It's also awfully noisy.






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to