Re: about shell scripts having X>&Y in place of X&>Y
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: