Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256192

Re: question about net address

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: question about net address
Date 2023-03-19 18:30 +0100
Message-ID <Gb50Z-dBTz-1@gated-at.bofh.it> (permalink)
References (5 earlier) <GaZeW-dyjr-5@gated-at.bofh.it> <GaZyh-dyqA-3@gated-at.bofh.it> <GaZyh-dyqA-1@gated-at.bofh.it> <GaZHX-dyuq-5@gated-at.bofh.it> <Gb0kG-dyYc-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 19 Mar 2023 at 08:25:28 (-0400), Greg Wooledge wrote:
> On Sun, Mar 19, 2023 at 12:45:06PM +0100, Nicolas George wrote:
> > #!/bin/sh
> > eval "$(recode b64..data <<EOF | gunzip
> > H4sIACv1FmQAAzXMPQrCQBAG0H5O8TFEMII/BA3BVF7AXoLFsI5kCdl1d5JC8PCSIuVrnro+gm82
> > QPBVO4aINKtNPoYrU1Z5YZ+RyIkpuNh+sg/TG7wxRpHwg/VSXWqbx5LhA6E7Vee6EafPXQld9ofa
> > oW0Jq+9xoZo4+gNQ3NCSfgAAAA==
> > EOF
> > )"
> 
> Using recode instead of base64 to do a base64 decoding is... a choice.
> I wonder how many people have recode installed.

Here, yes, but I always used an alias written so long ago (for
ISO-8859-1..UTF-8) that I hadn't ever thought about using it
for base64. (My alias's name is a reminder that it overwrites
whenever filenames are given.)

> Within the "script" itself, you have:
> 
> case "$(printf "%s" $q | sha256sum)" in
> 
> This line is fascinating because you've used quotes twice where they
> aren't needed and failed to use them in the one place they're required.

I'd be surprised if people ran the above without first cutting/pasting
and line-editing it to something like:

 $ recode b64..data <<EOF | gunzip | hexdump -C
   H4sIACv1FmQAAzXMPQrCQBAG0H5O8TFEMII/BA3BVF7AXoLFsI5kCdl1d5JC8PCSIuVrnro+gm82
   QPBVO4aINKtNPoYrU1Z5YZ+RyIkpuNh+sg/TG7wxRpHwg/VSXWqbx5LhA6E7Vee6EafPXQld9ofa
   oW0Jq+9xoZo4+gNQ3NCSfgAAAA==
   EOF

(very simply done when using bracketed paste, of course).

Cheers,
David.

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

question about net address coreyh@free.fr - 2023-03-18 12:30 +0100
  Re: question about net address Markus Schönhaber <debian-user@list-post.mks-mail.de> - 2023-03-18 13:40 +0100
  Re: question about net address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2023-03-18 14:30 +0100
  Re: question about net address Kushal Kumaran <kushal@locationd.net> - 2023-03-18 23:20 +0100
    Re: question about net address coreyh@free.fr - 2023-03-19 00:40 +0100
      Re: question about net address David Christensen <dpchrist@holgerdanske.com> - 2023-03-19 11:10 +0100
        Re: question about net address coreyh@free.fr - 2023-03-19 11:30 +0100
          Re: question about net address Joe <joe@jretrading.com> - 2023-03-19 11:40 +0100
          Re: question about net address Jeremy Ardley <jeremy@ardley.org> - 2023-03-19 11:40 +0100
            Re: question about net address coreyh@free.fr - 2023-03-19 11:40 +0100
              Re: question about net address jeremy ardley <jeremy@ardley.org> - 2023-03-19 11:50 +0100
              Re: question about net address <tomas@tuxteam.de> - 2023-03-19 12:10 +0100
              Re: question about net address Greg Wooledge <greg@wooledge.org> - 2023-03-19 13:20 +0100
                Re: question about net address Curt <curty@free.fr> - 2023-03-19 18:20 +0100
                Re: question about net address David Wright <deblis@lionunicorn.co.uk> - 2023-03-19 19:50 +0100
              Re: question about net address Stefan Monnier <monnier@iro.umontreal.ca> - 2023-03-19 16:00 +0100
            Re: question about net address Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-03-19 12:10 +0100
              Re: question about net address <tomas@tuxteam.de> - 2023-03-19 12:20 +0100
              Re: question about net address <tomas@tuxteam.de> - 2023-03-19 12:20 +0100
                Re: question about net address Nicolas George <george@nsup.org> - 2023-03-19 12:20 +0100
                Re: question about net address Jeremy Ardley <jeremy@ardley.org> - 2023-03-19 12:40 +0100
                Re: question about net address Nicolas George <george@nsup.org> - 2023-03-19 12:50 +0100
                Re: question about net address Greg Wooledge <greg@wooledge.org> - 2023-03-19 13:30 +0100
                Re: question about net address David Wright <deblis@lionunicorn.co.uk> - 2023-03-19 18:30 +0100
                Re: question about net address David Wright <deblis@lionunicorn.co.uk> - 2023-03-19 19:50 +0100
                Re: question about net address Jeremy Ardley <jeremy@ardley.org> - 2023-03-20 00:40 +0100
                Re: question about net address fh@dnsbed.com - 2023-03-20 01:30 +0100
                Re: question about net address Stefan Monnier <monnier@iro.umontreal.ca> - 2023-03-21 23:30 +0100
                Re: question about net address Jeremy Ardley <jeremy@ardley.org> - 2023-03-22 00:00 +0100
                Re: question about net address David Wright <deblis@lionunicorn.co.uk> - 2023-03-22 00:50 +0100
                Re: question about net address David Wright <deblis@lionunicorn.co.uk> - 2023-03-22 15:50 +0100
                Re: question about net address Jeremy Ardley <jeremy@ardley.org> - 2023-03-19 12:40 +0100
                Re: question about net address Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-03-19 13:10 +0100
                Re: question about net address Curt <curty@free.fr> - 2023-03-19 18:10 +0100
              Re: question about net address fh@dnsbed.com - 2023-03-19 12:40 +0100
                Re: question about net address <tomas@tuxteam.de> - 2023-03-19 13:00 +0100
              Re: artifiial intelligence (was: Re: question about net address) Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-03-20 10:30 +0100
          Re: question about net address David Christensen <dpchrist@holgerdanske.com> - 2023-03-19 23:20 +0100
  Re: question about net address Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-03-19 10:00 +0100
    Re: question about net address Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-03-19 10:10 +0100
    Re: question about net address debian-user@howorth.org.uk - 2023-03-19 17:50 +0100

csiph-web