30.7.1 Directories

Function: dotest-cd DIRECTORY

Change the working directory. This is just a wrapper for cd; if verbose mode is on: print a message.

Function: dotest-mkdir DIRECTORY
Function: dotest-mkdir DIRECTORY PREFIX

Create DIRECTORY under the temporary directory; DIRECTORY must be a relative pathname (that is: it must not begin with a slash).

The optional PREFIX is a relative pathname that is prepended to DIRECTORY: it is useful to prepend the name of a parent directory.

Print to stdout the full pathname of the directory.

Temporary directory

Function: dotest-echo-tmpdir

Print the value of the temporary directory in which all the files and directories will be created. The value is prefixed with the value of the environment variable TMPDIR, or /tmp if not set.

Function: dotest-cd-tmpdir

Change the working directory to the temporary directory.

Function: dotest-mktmpdir

Create the temporary directory. dotest-mkdir() creates the temporary directory automatically by using the --parents option of mkdir. This function is automatically invoked by dotest-mkfile() and dotest-mkpathname().


This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.