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

Re: string to array space problem in filenames



On Sep 2,  8:37pm, Ray Andrews wrote:
}
} I've got it all more or less working except I can't figure out how to 
} write the array--with newlines now, not with spaces--back to the file. 

You mean like:

    print -l "${array[@]}" > file

?

(Or Kurtis's answer if you need the newlines in the string *before* it
goes to the file.)



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