Skip to main content

SwitchOSdir

Enable/disable switching current working directories when changing namespaces.

Synopsis

[Miscellaneous]    SwitchOSdir=n

Description

This setting specifies what happens to the current working directory (for accessing files by relative pathname, etc.) when you switch to a new namespace. The value n may be 1 or 0:

  • When 1 (true), if you change namespaces, the current working directory remains unaltered no matter what namespace you switch to.

  • When 0 (false), if you change namespaces, the current working directory is changed to the directory of the default dataset for non-% globals of the new namespace. However, if this dataset is remote (networked to a different system), the current working directory is left unchanged.

Suppose SwitchOSdir is set to 1, or SwitchOSdir is set to 0 and the dataset is remote. In these cases, the current working directory does not change automatically as a result of changing the namespace, but you can always change the current working directory programmatically.

Examples

SwitchOSdir=0

Range of Values

0 or 1. The default is 0.

Management Portal

On the page System Administration > Configuration > Additional Settings > Compatibility, in the SwitchOSDir row, select Edit. Choose true (selected) or false (cleared).

FeedbackOpens in a new tab