
pathname - returns hardware dependent path names

Calling sequence:
pathname([  Root,  ]  string ...)

Parameter:
Root     --  option
string   --  string

Summary:

pathname is used to create hardware dependent path names.  These path
names are, for example, necessary to be able to give file names while loading
a library that are independent of the operating system.

The names of the subdirectories are given as strings. If the option Root is
given then an absolute path name is created. If it is not given then a relative
name is created.

So that the name is valid for every operating system supported by MuPAD
the following conventions must be complied with:

 o  The name may not contain the characters "/\, "\\, ":\ or blanks " \.

 o  The name may not be longer than 8 characters.

Compliance with these conventions is tested by pathname.

In MS-DOS it is not possible with pathname to give a volume name for a

path name.  The created names are always relative to the current volume.
Examples for names created with pathname are:
     _____________________________________________________________
     -- pathname("lib","linalg")       -"lib/linalg/"  - UNIX    --
     --                                 --"lib\linalg\"  -MS-DOS --
     --_________________________________--":lib:linalg:"_-Mac-OS__--
     -- pathname(Root,"lib","linalg") - "/lib/linalg/" - UNIX    --
     --                                 --"\lib\linalg\" -MS-DOS --
     --_________________________________--"lib:linalg:"__-Mac-OS__--

>>  pathname("lib", "linalg");

      "lib/linalg/"

>>  pathname(Root, "lib", "linalg") . "solve.mu";

      "/lib/linalg/solve.mu"

See also:  sysname

