Ticket #773 (new defect)

Opened 1 year ago

Last modified 1 year ago

SAGE drops . from path

Reported by: was Assigned to: was
Priority: major Milestone: sage-3.2.2
Component: interfaces Keywords:
Cc:

Description

was@ubuntu:~/sd5/ant$ export PATH=.:$PATH
was@ubuntu:~/sd5/ant$ sage
----------------------------------------------------------------------
| SAGE Version 2.8.5.1, Release Date: 2007-09-26                     |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

os.ensage: os.environ['PATH']
'/home/was/s/local/polymake/bin/:/home/was/s:/home/was/s/local/bin:/home/was/s.dev:/usr/local/bin/:/home/was/bin:/home/was/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'

Change History

11/03/2007 08:28:26 AM changed by was

  • milestone changed from sage-2.9.1 to sage-2.8.12.

12/10/2007 06:48:03 PM changed by cwitty

I'm guessing this is caused by the following lines from expect.py...

# . in user's path causes *HUGE* trouble, e.g., pexpect will try to
# run a directory name!
p = os.environ['PATH'].split(':')
os.environ['PATH'] = ':'.join([v for v in p if v.strip() != '.'])

These lines were added by William Stein:

changeset:   2329:cccccf17fcd6
user:        William Stein <wstein@gmail.com>
date:        Thu Jan 11 14:10:46 2007 -0800
summary:     Make sure . is not in user's path.