You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2015/08/22 01:13:45 UTC

[jira] [Resolved] (FELIX-4969) cd refuses to leave initial directory

     [ https://issues.apache.org/jira/browse/FELIX-4969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks resolved FELIX-4969.
---------------------------------
       Resolution: Fixed
    Fix Version/s: gogo.command-0.16.0

I applied the patch from github and committed in r1697070.  I couldn't figure out how to use git to merge, perhaps because the felix tree has changed so much recently.  I think you will need to close the github pull request.

> cd refuses to leave initial directory 
> --------------------------------------
>
>                 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
>            Assignee: David Jencks
>             Fix For: gogo.command-0.16.0
>
>
> 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.  If I type extra slashes, it stops complaining -- but it also doesn't change the directory.
> {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.
> A patch will be forthcoming to the refusal.



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