How split can't behave like splitWhitespace. I guess it should and just be more 
general.

Well, there is a similar library in Fortran. If I recall, there is a function a 
little similar to split (it's also an iterator). It separates the concept of a 
separator characters and unmatched characters. So it would be something like 
that:
    
    
    echo "  a couple of \t words ".split(sep = Whitespace)
    # @[, , a, couple, of, , , words, ]
    echo "  a couple of \t words ".split(ignore = Whitespace)
    # @[a, couple, of, words]
    

Reply via email to