path expand for default

Try to expand a path to its absolute form.


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


  • --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


Expand an absolute path

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

Expand a path in a column

> ls | path expand -c [ name ]

Expand a relative path

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