News for hackers. Stuff that matters.
Re:Show HN: Command Line Challenge by saghm on Thursday January 26, 2017 @09:04PM (#13497152)
Although it often doesn't get printed like that, shells do consider the output of `ls` to be multiple lines. Try doing `ls > foo.txt` and looking at the output file (or more directly, `ls | wc -l`).
Re:Show HN: Command Line Challenge by jjnoakes on Thursday January 26, 2017 @10:07PM (#13497391)
That isn't the shell considering the output one per line.

ls will change the way it writes its output if it detects that stdout is a tty versus a pipe or redirect.