#11707: Remove `readlink -n` and `realpath` from $SAGE_ROOT/sage
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:            
       Type:  defect    |         Status:  new       
   Priority:  major     |      Milestone:  sage-4.7.2
  Component:  scripts   |       Keywords:  SAGE_ROOT 
Work_issues:            |       Upstream:  N/A       
   Reviewer:            |         Author:            
     Merged:            |   Dependencies:            
------------------------+---------------------------------------------------

Comment(by tornaria):

 Replying to [comment:9 jdemeyer]:
 > I attach a shell script which should be portable (however, I have not
 yet tested this) and behaves like "readlink -f" if combined with `( cd
 $dir && pwd )`.  I guess this would solve all problems mentioned here.  I
 still have to think about the best way of using this from
 `$SAGE_ROOT/sage`.

 I'll suggest for a last time that you check out #6146. There is a script
 there that is simpler, shorter, and has some testing. Portability is not
 so easy... your script hangs on my first try on SunOS 5.10 (fulvia). Note
 also that because we are assuming bash, we can portably use "pwd -P" as a
 bash builtin.

 If you can figure out a way to make "readlink -f" work (when available),
 i.e. finish fixing #5852, then #6146 already gives a solution for systems
 where "readlink -f" is not available.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11707#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to