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

Re: string overwrites string when echoed



On Sep 9,  2:55pm, Emanuel Berg wrote:
}
}         reply=$(url $u)
}         echo "$u $reply" # works
}         echo "$reply $u" # doesn't work, $u overwrites $reply

The value of $reply has an embedded carriage-return.  You can see
this if you use:

    echo "$u ${(V)reply}"
    echo "${(V)reply} $u"



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