Read-only forum archive

cd in singular

cd in singular

Guest · 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.

Re: cd in singular

gorzel · Sat Mar 26, 2011 8:57 pm

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.

Re: cd in singular

ChrisE · Tue Apr 19, 2011 12:42 pm

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