1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA
7 * Copyright (C) 2012 - 2016 - Scilab Enterprises
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
17 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="chdir">
19 <refname>chdir</refname>
20 <refpurpose>changes Scilab current directory</refpurpose>
22 <refnamediv xml:id="cd">
24 <refpurpose>changes Scilab current directory</refpurpose>
28 <synopsis>b = chdir(path)
34 <title>Arguments</title>
40 a boolean <constant>%t</constant> if <function>chdir</function> operation is ok
47 <para>a character string</para>
53 <para>a character string, the real path name after pathname
54 conversion (see below)
61 <title>Description</title>
62 <para>Change the current Scilab directory to those given by
63 <varname>path</varname>.
67 Note that path conversion is performed and for example
68 <literal>SCI/modules/core/macros</literal> is a valid pattern for both Unix and Windows.
69 If <varname>path</varname> is empty change to "home" directory.
74 <title>Examples</title>
75 <programlisting role="example"><![CDATA[
82 <refsection role="see also">
83 <title>See also</title>
84 <simplelist type="inline">
86 <link linkend="pwd">pwd</link>
89 <link linkend="SCI">SCI</link>
92 <link linkend="SCIHOME">SCIHOME</link>
95 <link linkend="TMPDIR">TMPDIR</link>