Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: cd in singular
PostPosted: Fri Mar 25, 2011 5:03 pm 
Apologies for the newbie question, but how do I change my working directory in Singular? I managed to work out how to find where I am

> system("sh","pwd");
/home/chris

but

> system("sh", "cd /home/chris/maple");

doesn't seem to do anything. I'm using Ubuntu 10.04.

Trying to find an answer to anything in the 33 pages of forum posts is rather difficult as there doesn't seem to be an index.


Report this post
Top
  
Reply with quote  
 Post subject: Re: cd in singular
PostPosted: Sat Mar 26, 2011 8:57 pm 

Joined: Wed Mar 03, 2010 5:08 pm
Posts: 108
Location: Germany, Münster
Yes, unlike in other systems, where for instance a command SetDirectory exists,
you can not change the working directory.

You are there, from where you have called Singular.

The singforum can be searched through, look for
SINGULARPATH and the use of the tab key.

Both will facilate the access to files.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: cd in singular
PostPosted: Tue Apr 19, 2011 12:42 pm 

Joined: Fri Mar 25, 2011 4:51 pm
Posts: 3
many thanks, it would be useful if the "system" manual page gave a list of common system commands which can't be called in this way.

Chris


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:04 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group