[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/4] ls: have classify take optional argument
From: |
Jason Kim |
Subject: |
[PATCH 0/4] ls: have classify take optional argument |
Date: |
Sun, 19 Apr 2020 01:40:15 -0700 |
`ls --classify` prints extra characters that are helpful to users.
Users may wish to turn that flag on by default (e.g. through a shell
alias or `LS_OPTIONS`). However, it is unfriendly to use it in
combination with other commands (e.g. `alias ls='ls --classify'; ls |
grep '.sh$'`).
Add an optional argument to `--classify` indicating _when_ to classify,
just like the optional argument for `--color`. This lets users use `ls
--classify=auto` to prevent the classify indicator style from activating
when the output is not to a TTY.
Add a test `tests/ls/classify.sh`, and update documentation.
- [PATCH 0/4] ls: have classify take optional argument,
Jason Kim <=
- [PATCH 1/4] ls: have classify take optional argument, Jason Kim, 2020/04/19
- [PATCH 3/4] doc: update ls classify with optional arg, Jason Kim, 2020/04/19
- [PATCH 2/4] ls: update help text for classify opt arg, Jason Kim, 2020/04/19
- [PATCH 4/4] tests: add ls classify test, Jason Kim, 2020/04/19
- Re: [PATCH 0/4] ls: have classify take optional argument, Pádraig Brady, 2020/04/19