[
https://issues.apache.org/jira/browse/FELIX-4969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14636861#comment-14636861
]
ASF GitHub Bot commented on FELIX-4969:
---------------------------------------
GitHub user bimargulies opened a pull request:
https://github.com/apache/felix/pull/29
FELIX-4969: use the URI class for cd
to handle absolute pathnames.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bimargulies/felix felix-4969-cwd
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/felix/pull/29.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #29
----
commit d33087d2f32ec0ef3685cb7e096f56ea745bc783
Author: Benson Margulies <[email protected]>
Date: 2015-07-22T12:42:59Z
FELIX-4969: use the URI class to handle resolution of absolute or relative
pathnames in 'cd'.
----
> 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
>
> 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)