Skip to main content


Laurence MorganLess than 1 minute


Escapes an array so output is valid shell code


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.


<stdin> -> esccli -> <stdout>

esccli @array -> <stdout>


As a method

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

As a function

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

See Also

  • [ Index ]: Outputs an element from an array, map or table
  • alias: Create an alias for a command
  • escape: Escape or unescape input
  • eschtml: Encode or decodes text for HTML
  • escurl: Encode or decodes text for the URL
  • out: Print a string to the STDOUT with a trailing new line character

This document was generated from builtins/core/escape/escape_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan,Laurence