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

Re: more splitting





On 2026-04-15 10:32, Mark J. Reed wrote:

The thing stored in memory is not delimited. It has no parentheses around it, no quotes, no spaces between its elements. There isn't any "between its elements" because the elements are stored separately; it is treated as if it were a collection of individual variables each with their own value.
Yeah ... this has been explained ... they are delimited simply by virtue of being separate C strings.  Pull them out in order, pipe them ... the separation no longer exists, it's an artifact of the C storage.  I get it.  My socks are the the top drawer, my undies in the 2nd -- but when they're in the wash, the machine has no way of knowing where they came from or where they're going.  My socks don't use a bowtie to delimit themselves from my undies, they're simply stored in different places.  It might have been designed differently but that's the way it is.

OK.  A few more questions, and I think I'll finally understand splitting.






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