20.10 Normalising pathnames

Function: mbfl_file_enable_realpath

Declare the commands required to normalise pathnames. Declaring the intention to use a program

The programs are: realpath.

Function: mbfl_file_realpath PATHNAME OPT
Function: mbfl_file_realpath_var _RV PATHNAME OPT

Normalise the given PATHNAME using realpath and print the result to stdout. The optional arguments OPT are added, as options, to the command line of realpath.

The function variant _var stores the result in the variable _RV, rather than print it; Result variables.

Function: mbfl_exec_realpath ARG

Execute the program realpath using the given optional command line arguments.


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