GNU's ls now has an optional argument for the --classify option: always/auto/never, similar to --color (but with the default set to --always): always always enables, never disables, auto enables only when stdout is going to a terminal. This feature is tested in the tests/ls/classify GNU test.