Re:Is the Unix shell ready for XML? (2006)
by meddlepal on Saturday April 04, 2015 @05:42PM
(#9322307)
My problem with the shell is that the output of commands is often irregular. You never know what you're going to get. Newlines? Maybe... CRLF? Tab delimited? And it often varies between operating systems and environments. I'd much rather every command dumped XML or JSON that I could parse.
[ Parent
| on HN ]
Re:Is the Unix shell ready for XML? (2006)
by fsniper on Saturday April 04, 2015 @05:44PM
(#9322320)
You are right about that. It would be better to have common sense in outputting. Only common sense currently is clear text.
Re:Is the Unix shell ready for XML? (2006)
by falcolas on Saturday April 04, 2015 @08:58PM
(#9322735)
It's hard to consider clear text to be the best option when you're trying to parse file names. What tool will properly generate your delimiters? How do you get your tool (or bash loop) to parse on that delimiter?
Filenames with spaces (or quotes, or unicode characters, or control characters, or...) have wreaked many a seemingly ideal program which needs to iterate over files.