![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.0 |
Assignee:
|
Thomas E Enebo
|
Created:
|
25/Jan/13 11:00 PM
|
Description:
|
Using a stock oh-my-zsh, the jruby script fails when run from a different shell script and the jruby script is under a symlink. The problem is that $SELF_PATH gets set to "<logical dir name> <actual dir name>" (that is, the symlinked name and the target name). I think the problem is that cd is echoing the directory being entered. I tried disabling various oh-my-zsh options, but in the end the following worked for me:
diff --git a/third_party_tools/jruby-1.7.0.RC1/bin/jruby b/third_party_tools/jruby-1.7.0.RC1/bin/jruby
index 0d79b0b..f5f40cc 100755
— a/third_party_tools/jruby-1.7.0.RC1/bin/jruby
+++ b/third_party_tools/jruby-1.7.0.RC1/bin/jruby
@@ -26,7 +26,7 @@ if [ -z "$JAVA_VM" ]; then
fi
- get the absolute path of the executable
-SELF_PATH=$(cd -P – "$(dirname – "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename – "$0")
+SELF_PATH=$(builtin cd -P – "$(dirname – "$0")" >/dev/null && pwd -P) && SELF_PATH=$SELF_PATH/$(basename – "$0")
|
Project:
|
JRuby
|
Priority:
|
Minor
|
Reporter:
|
Dave Thomas
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email