path expand for default

Try to expand a path to its absolute form.

Signature

> path expand --strict --no-symlink --columns

Parameters

  • --strict (-s): Throw an error if the path could not be expanded
  • --no-symlink (-n): Do not resolve symbolic links
  • --columns {table}: For a record or table input, expand strings at the given columns

Examples

Expand an absolute path

> '/home/joe/foo/../bar' | path expand
/home/joe/bar

Expand a path in a column

> ls | path expand -c [ name ]

Expand a relative path

> 'foo/../bar' | path expand