On Tue, May 15, 2018 at 08:57:02PM +0200, Marco Pfatschbacher wrote:
> While doing some ad-hoc scripting on my command line,
> I noticed that ls(1) defaults to multi-column output,
> even if the output is piped to another command.
> 
> The reason for this annoyance is simple:
> $ alias |grep ls
> ls='ls -CF'
> 
> LS(1)
>      -C     Force multi-column output; this is the default when
>             output is to a terminal.
Even though /etc/ksh.kshrc must be set up explicitly and you're supposed
to know what you're loading into your shell, I doubt that alias' sanity.

> ls(1) can detect whether stdout isatty(3) all by itself.
> 
> I think it's time to remove this artifact from 1996.
Just didn't notice this already due realiasing in my ~/.kshrc.

OK kn.

Reply via email to