[sf-lug] dpkg -l & width ...

Michael Paoli Michael.Paoli at cal.berkeley.edu
Wed Aug 2 19:27:33 PDT 2017


Yes, that shows it as a shell named parameter ("variable").
But is it in (exported to) the environment?

$ env | grep '^COLUMNS='
gives ... what?
And dpkg -l knows nothing of shell variables, but it does
get what's in the environment when it's executed -
see also: execve(2)

> From: "Rick Moen" <rick at linuxmafia.com>
> Subject: Re: [sf-lug] dpkg -l & width ...
> Date: Wed, 2 Aug 2017 11:01:39 -0700

> Quoting Michael Paoli (Michael.Paoli at cal.berkeley.edu):
>
>> Hmmm, I seem to get the behavior Daniel observes.
>> Rick, perhaps you have COLUMNS in your typical environment,
>> and Daniel and I don't?
>
> Appears so.
>
> ~ $ set | grep COLUMNS
> COLUMNS=80




More information about the sf-lug mailing list