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

Re: array with newlines preserved as literal text



On Wed, Feb 3, 2021 at 6:07 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> Nuts what am I doing wrong trying to save to a variable:

I don't know, it looks fine to me (and works fine for me):

ubuntu% myfn() { print -r Args: "$@" }
ubuntu% alias myfn='_fn2hist myfn'
ubuntu% myfn 1 "2 3" 4
Args: 1 2 3 4
_com is:  () {
  print -r Args: "$@"
} '1' '2 3' '4'

Given that you also have trouble with what's placed in the history by
"print -rS", I'd suggest you start looking around for other things in
your configuration that are messing with command execution.




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