Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Issue with string slices



To print $something as is, use one of these forms:

  echo -nE - "$something"
  print -nr -- "$something"
  printf '%s' "$something"

The first two are ZSH specific, the last is portable. ZSH also allows
you to omit quotes here unless SH_WORD_SPLIT option is set.

Roman.



Messages sorted by: Reverse Date, Date, Thread, Author