--21134_ĵaŭ_Maj__2_15_03_54_UTC_2019
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


Package: shellcheck
Version: 0.5.0-3
Severity: normal

Dear Maintainer,

shellcheck complains on empty redirection:

        $ cat /tmp/foo.sh
        #!/bin/sh
        > /tmp/foo
        $ shellcheck /tmp/foo.sh

        > /tmp/foo
        ^-- SC2188: This redirection doesn't have a command. Move to its 
command (=
or use 'true' as no-op).

As discussed in #923478, empty redirection is posix-complaint, more
concise way to say "true > /tmp/foo": create file if it does not exist
and make sure it have zero size. Futhermore, shellcheck complains on
such construction in bash mode, where it definitely works as intended.

I think this diagnostics is incorrect.
-- =

        Note, that I send and fetch email in batch, once every 24 hours.
                 If matter is urgent, try https://t.me/kaction
                                                                           =
  --

--21134_ĵaŭ_Maj__2_15_03_54_UTC_2019
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEhnHVzDbtdH7ktKj4SBLY3qgmEeYFAlzLBtoACgkQSBLY3qgm
EebuEw/9Ef8RAl3ocRaWY+iJMSoM3qzbsiNXLFqSOx6RhQSOUQnuiBjR9uQxhr56
E/W2AMVPEGPtsZ7X32QYZYQP2SCQUOlHXYLoqedA6WVsQcRzLg9KrKey8c5XTgi8
luLsL/z3IE6Z+qMJ9ebi+qEQoKMBts3Q8yUX4YSli/B1cUbtqOOFKyYwpOYrqWSM
2QHKc6kVwHckvwDp9EScX4vrZVQD2LYYfH3Zz+6zKbuBRqMfluUXLsG/Yrdn3XP9
nTDVH5MZkD+NRZ75s870jQtU6AD8fJCQcKkPHVtBN69rrSTxgCmgLzsxd117WKGH
cGa+ce0+Ss1pZfokEIe+CI9kaWT0BtqeYWh1ASZTlS/x9uaHmBrdJ2E5UK5zKbgj
v+xkvP8AUUx/BjU2/TP2NBfnCnQdFz2CpVW+p/YJ+exN/gqMbF0e5UslIi+3pDoz
2dlj3scZH8AZzMRgxH0iTY1IhagctVUEEGnN1FajYJKaVGtymSfoAL/oH90oUB67
RnMdfoJ0A/VQV2E4kLJIo0Hh/54G+/kpQxTAWpGSfa4Ks7Ppsw3r/hQpKvNaHwXy
K/tsz+2tkaVyqREOzSmjuZFnHG/ZZrG/rbaIBarK2czlnG1kO7e5NKeYoEgf9hsx
kf98aJzZQ2H26siod/exLGgE8xiOyM1ES5DIhCaRrHjCwCQyMv8=
=OOxU
-----END PGP SIGNATURE-----

--21134_ĵaŭ_Maj__2_15_03_54_UTC_2019--

Reply via email to