Skip to main content

Module word_expander

Module word_expander 

Source
Expand description

Splits a shell word into typed parts so that every leaf of the network is translated by a rule rather than by ad-hoc string surgery.

A word such as "${DIR}/$(basename "$1").log" becomes: literal(“) variable(DIR) literal(/) substitution(…) literal(.log”)

Functions§

expand_word
Expands a shell word (quotes included) into part nodes.