Node:Programming in M4sh, Previous:Programming in M4sugar, Up:Programming in M4



Programming in M4sh

M4sh provides portable alternatives for some common shell constructs that unfortunately are not portable in practice.

AS_DIRNAME (pathname) Macro
Return the directory portion of pathname, using the algorithm required by POSIX. See Limitations of Usual Tools, for more details about what this returns and why it is more portable than the dirname command.