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

Re: String splitting




$ FOO="/a/long/path/to/file" ; FOO=(${(s:/:)FOO}) ; echo $FOO
a long path to file



> Hi, I want to split a string '/a/long/path/to/file' to an array:
> 
> ( a long path to file )
> 
> What would be the most zsh style way for that?
> 
> Thanks!
> 
> Przemek



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