Difference between revisions of "CURDIR()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return current device and directory
 
Function to return current device and directory
 
  
 
==Syntax==
 
==Syntax==
CURDIR([<expN>])
+
CURDIR()
 
+
  
 
==See Also==
 
==See Also==
[[DIR()]], [[SET DEFAULT]], [[SYS()]]
+
[[SET DEFAULT]], [[SYS()]]
 
+
  
 
==Description==
 
==Description==
The CURDIR() function returns the name of the current directory. The optional <expN> is used to the return the current device specification as well as the directory on OpenVMS.  The <expN> must return a 1.  The CURDIR() function always returns a character string without changing the case.
+
The CURDIR() function returns the name of the current directory. The CURDIR() function always returns a character string without changing the case.
 
+
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
? curdir()
 
? curdir()
[USERS.RECITAL]
+
/home/user1
?curdir(1)
+
DIA1:[USERS.RECITAL]
+
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 06:45, 10 February 2012

Purpose

Function to return current device and directory

Syntax

CURDIR()

See Also

SET DEFAULT, SYS()

Description

The CURDIR() function returns the name of the current directory. The CURDIR() function always returns a character string without changing the case.

Example

? curdir()
/home/user1