• Is the -t option of gzip widely accepted and portable?

    From [email protected]@21:1/5 to All on Sat Jan 8 05:11:55 2022
    I'm currently creating a merge request which enhance the archive integrity of the compressed file [1]. But I'm not sure if this trick is widely accepted and portable. Any hints will be highly appreciated.

    [1] https://gitlab.com/QEF/q-e/-/issues/435

    Regards,
    HZ

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ed Morton@21:1/5 to [email protected] on Sat Jan 8 07:40:13 2022
    On 1/8/2022 7:11 AM, [email protected] wrote:
    I'm currently creating a merge request which enhance the archive integrity of the compressed file [1]. But I'm not sure if this trick is widely accepted and portable. Any hints will be highly appreciated.

    [1] https://gitlab.com/QEF/q-e/-/issues/435

    Regards,
    HZ


    Please always put your question in the body of your message, not just in
    the subject line.

    You're asking if the advertised argument (-t) to a GNU-specific tool
    (gzip) is portable. Portable to what? It's not like awk where there's
    multiple vendors and so multiple variations of the tool. gzip is
    provided by GNU so if they say it has a `-t` argument then it has a `-t` argument.

    Ed.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Weisgerber@21:1/5 to Ed Morton on Sat Jan 8 21:15:12 2022
    On 2022-01-08, Ed Morton <[email protected]> wrote:

    You're asking if the advertised argument (-t) to a GNU-specific tool
    (gzip) is portable. Portable to what? It's not like awk where there's multiple vendors and so multiple variations of the tool.

    Actually there are.

    OpenBSD has extended BSD compress(1) to cover gzip; both are hardlinks
    to the same program.

    NetBSD has a re-implementation of GNU gzip, which is also used by
    FreeBSD.

    They all support -t.

    --
    Christian "naddy" Weisgerber [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Christian Weisgerber on Sat Jan 8 22:48:16 2022
    On Sunday, January 9, 2022 at 5:30:11 AM UTC+8, Christian Weisgerber wrote:
    On 2022-01-08, Ed Morton <[email protected]> wrote:

    You're asking if the advertised argument (-t) to a GNU-specific tool
    (gzip) is portable. Portable to what? It's not like awk where there's multiple vendors and so multiple variations of the tool.
    Actually there are.

    OpenBSD has extended BSD compress(1) to cover gzip; both are hardlinks
    to the same program.

    NetBSD has a re-implementation of GNU gzip, which is also used by
    FreeBSD.

    They all support -t.

    Thank you for your comment. And also see the following options supplied by gzip and uncompress on Debian derived distros:

    werner@X10DAi-00:~$ gzip --help |grep -- -t
    -t, --test test compressed file integrity
    werner@X10DAi-00:~$ uncompress -h|grep -- -t
    -t, --test test compressed file integrity

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Computer Nerd Kev@21:1/5 to Christian Weisgerber on Sun Jan 9 20:42:59 2022
    Christian Weisgerber <[email protected]> wrote:
    On 2022-01-08, Ed Morton <[email protected]> wrote:

    You're asking if the advertised argument (-t) to a GNU-specific tool
    (gzip) is portable. Portable to what? It's not like awk where there's
    multiple vendors and so multiple variations of the tool.

    Actually there are.

    OpenBSD has extended BSD compress(1) to cover gzip; both are hardlinks
    to the same program.

    NetBSD has a re-implementation of GNU gzip, which is also used by
    FreeBSD.

    They all support -t.

    Plus BusyBox, which also supports -t with its gzip implementation
    (in v1.33.0 at least).

    --
    __ __
    #_ < |\| |< _#

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)