Escape Command Line String (esccli)

Escapes an array so output is valid shell code

Description

esccli takes an array and escapes any characters that might cause problems when pasted back into the terminal. Typically you’d want to use this against command parameters.

Usage

<stdin> -> esccli -> <stdout>

esccli @array -> <stdout>

Examples

As a method

» alias foobar=out 'foo$b@r'
» alias -> [foobar]
[
    "out",
    "foo$b@r"
]
» alias -> [foobar] -> esccli
out foo\$b\@r

As a function

» alias -> [foobar] -> set fb
» $fb
["out","foo$b@r"]
» esccli @fb
out foo\$b\@r

Synonyms

See Also


This document was generated from builtins/core/escape/escape_doc.yaml.

This site's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Tue Dec 10 22:56:57 UTC 2024 against commit 60f05a260f05a227caf73dd5b3478e3cb3f4bb24e46745b.

Current version is 6.4.1005 (develop) which has been verified against tests cases.