Skip to content

Commit

Permalink
Document changeDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed May 30, 2024
1 parent 19c78dc commit f73b8e0
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion M2/Macaulay2/packages/Macaulay2Doc/system.m2
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,37 @@ document {
///,
PARA {
"If a component of the path to the current directory no longer exist, an error will be signalled."
}
},
SeeAlso => {changeDirectory}
}

doc ///
Key
changeDirectory
Headline
change the current working directory
Usage
changeDirectory dir
Inputs
dir:String
Description
Text
Change the current working directory to @VAR "dir"@.
Example
dir = temporaryFileName()
makeDirectory dir
changeDirectory dir
currentDirectory()
Text
If @VAR "dir"@ is omitted, then the current working directory
is changed to the user's home directory.
Example
changeDirectory()
currentDirectory()
SeeAlso
currentDirectory
///

document {
Key => exec,
Headline => "execute another program",
Expand Down

0 comments on commit f73b8e0

Please sign in to comment.