in my ubuntu the env var is not propagated if moved before sudo, the function works correctly Il giorno lun 13 feb 2023 alle 09:23 Roman Perepelitsa < roman.perepelitsa@gmail.com> ha scritto: > On Sun, Feb 12, 2023 at 10:53 PM Bart Schaefer > wrote: > > > > The alias would work if it were instead > > > > alias systemctl='SYSTEMD_PAGER= sudo systemctl' > > Keep in mind that on most systems with the default settings > SYSTEMD_PAGER won't be propagated through sudo. > > > Maybe this indicates need for a fix to _sudo > > Nod. > > Roman. > -- Pier Paolo Grassi