Re: The ls command
Greg Wooledge (HE12025-10-31):
> On Thu, Oct 30, 2025 at 21:51:16 -0700, Michael Paoli wrote:
> > $ ls ... | sort
> > may give results different than, e.g. ls -1 or what one might
> > otherwise be expecting/anticipating,
> You'd have to work pretty hard for that to be true. Can you come up
> with an actual example? Remember, POSIX says
The sort order will almost certainly be the same, yes.
OTOH, the output format can be different. Try this with a recent enough
version of GNU ls:
touch stupid\ name
ls -1
ls | cat
Regards,
--
Nicolas George
Reply to: