[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: about shell scripts having X>&Y in place of X&>Y



Great, I will give a look at shellcheck.

Regarding the upstream cases, at least I started with two of them:
1. https://lkml.org/lkml/2023/3/1/396
2. https://github.com/apache/jena/pull/1787
And let's see my level of courage for the others.

Thanks!

Le mer. 1 mars 2023 à 01:38, James Addison <jay@jp-hosting.net> a écrit :
>
> On Tue, 28 Feb 2023 15:51:20 +0100, Patrice wrote:
> > I tried using Debian CodeSearch to look for
> > other possible wrong cases like those and here is for instance a list
> > of candidates to check:
> > https://codesearch.debian.net/search?q=%5B12%5D%26%3E%5B12%5D&literal=0
>
> Nice thinking, and good finds.
>
> > Are there tools to check shell scripts that could be used to
> > detect/prevent/notify on this?
>
> Does shellcheck[1] (available in Debian) help to confirm some/all of them?
>
> > So what do I do next? Check each case and for each true one, fill a bug?
>
> Where possible I'd recommend going upstream first for most of these --
> except in cases where you find that functionality is significantly
> broken in Debian packages because of them (let me know if you'd like
> me to explain some of the reasons I think that).
>
> [1] - https://packages.debian.org/bookworm/shellcheck


Reply to: