str escape-glob for strings

Escape glob pattern.

Signature

> str escape-glob {flags} ...rest

Parameters

  • ...rest: For a data structure input, turn strings at the given cell paths into substrings.

Input/output types:

inputoutput
list<string>list<string>
recordrecord
stringstring
tabletable

Examples

escape glob pattern before list

> let f = 'test[a]'; ls ($f | str escape-glob)