Repository navigation
Commit 67fb193
committed
Since less tag v706¹, less exits with a failure status when no filename
is provided. Pass the `-?` option and redirect both stdout and stderr
to /dev/null.
Failure to detect `less` results in using `more` for users who don't
have MANPAGER or PAGER set, which is unexpected.
¹ gwsw/less@7c85230 (Exit with a failure
status in more cases, 2026-06-14)
1 parent 410fdda commit 67fb193
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments