diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-26 15:42:57 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-26 15:45:15 +0100 |
| commit | a452d3a9f526f6545981664712b45f709545e6fa (patch) | |
| tree | 0d8aaaba7123186aa1d5e32690a35b68498814da /test/integration/test-apt-cli-pager | |
| parent | 2a6c9bd8c0f8f50671bf7992f1e5d87b392e0336 (diff) | |
Respect custom LESS/MORE/LV variables
Use setenv() to avoid overriding user defined variables.
LP: #2103921
Diffstat (limited to 'test/integration/test-apt-cli-pager')
| -rwxr-xr-x | test/integration/test-apt-cli-pager | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/test-apt-cli-pager b/test/integration/test-apt-cli-pager index d1f8c3288..cc220c81f 100755 --- a/test/integration/test-apt-cli-pager +++ b/test/integration/test-apt-cli-pager @@ -125,3 +125,6 @@ Checksums-Sha256: PAGER="head -2" testsuccessequal "Package: foo Binary: foo" runapt --unbuffer apt showsrc foo -o TestPager="head- 2" + +PAGER='echo $LESS' testsuccessequal "FRX" runapt --unbuffer apt showsrc foo -o TestPager='echo $LESS (1)' +LESS=FRXM PAGER='echo $LESS' testsuccessequal "FRXM" runapt --unbuffer apt showsrc foo -o TestPager='echo $LESS (2)' |
