Opened 11 years ago

Closed 11 years ago

#449 closed proposed feature (invalid)

Add ability to list and change directories

Reported by: teijo.arponen@… Owned by: somebody
Priority: minor Milestone: 3-1-5 and higher
Component: dontKnow Version: 3-1-5
Keywords: Cc:


There seems to be no way to list the current working directory in Singular. Moreover, no way to change the working directory. This is a serious problem when using Singular in several different projects, each project of course having a folder devoted to files of only that project. And, the Singular is started from a desktop icon, there is no way to choose what working directory it has.

Change History (1)

comment:1 Changed 11 years ago by steenpass

Resolution: invalid
Status: newclosed

You can get the current working directory with 'system("sh", "pwd");'. Note that 'system("sh", [command]);' will execute any shell command from within Singular, but also note that 'system("sh", "cd foo");' doesn't work for good reasons.

What you actually want is probably this: If you start Singular from a shell (use cygwin under Windows), then you can first navigate to the directory of your project and then start Singular. You can then easily access any file in this dir from within Singular.

Note: See TracTickets for help on using tickets.