[Buildroot] [PATCH] support/scripts/pkg-stats: add tilde '~' expansion for pathes
heiko.thiery at gmail.com
Sat Mar 7 21:00:19 UTC 2020
Am Sa., 7. März 2020 um 15:56 Uhr schrieb Thomas Petazzoni
<thomas.petazzoni at bootlin.com>:
> On Sat, 7 Mar 2020 11:37:05 +0100
> Heiko Thiery <heiko.thiery at gmail.com> wrote:
> > The script arguments 'nvd-path', 'json' and 'html' currently does not
> > allow to have '~' in path for user home directory. With this patch
> > this '~' is expanded to the real user home directory.
> > Signed-off-by: Heiko Thiery <heiko.thiery at gmail.com>
> Isn't ~ supposed to be expanded by your shell before calling pkg-stats
> ? Here, pkg-stats --html ~/toto.html works perfectly fine without your
Indeed I didn't thought about that and you're right the shell should
expand that. But I saw that it was not.
I rechecked that and found out that there is a difference between
setting the argument of the option with or without a '='.
Without '=' the '~' is expanded by the shell (pkg-stats --html ~/out.html).
Wit '=' the '~' is not expanded by the shell (pkg-stats --html=~/out.html).
> Best regards,
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
More information about the buildroot