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


Groups > linux.debian.user > #227298

Re: notify via virtual terminal available packages

From Charles Curley <charlescurley@charlescurley.com>
Newsgroups linux.debian.user
Subject Re: notify via virtual terminal available packages
Date 2020-09-24 16:50 +0200
Message-ID <ASAJk-4iX-9@gated-at.bofh.it> (permalink)
References <ASjS9-2t3-9@gated-at.bofh.it> <ASzNf-3Kv-7@gated-at.bofh.it> <ASzWW-3NY-3@gated-at.bofh.it> <ASAzE-4fD-11@gated-at.bofh.it> <ASAzE-4fD-9@gated-at.bofh.it>
Organization occasionally

Show all headers | View raw


On Thu, 24 Sep 2020 10:38:55 -0400
Greg Wooledge <wooledg@eeg.ccf.org> wrote:

> In dash, RANDOM does nothing; it's just an empty variable.  And as it
> turns out, dash treats that as a zero.
> 
> unicorn:~$ dash
> $ echo $((1 + RANDOM % 1200))
> 1
> $ echo $((1 + % 1200))
> dash: 2: arithmetic expression: expecting primary: "1 + % 1200"
> $ echo $((1 + XYZZY % 1200))
> 1
> 
> So you're just doing "sleep 1" every time.

Ah, thank you. Yup. Which is weird, because it worked when I first
wrote that many years ago. I may or may not remove that part of the
line. But I will move toward more use of unattended-upgrades, which
handles the original problem differently.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

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


Thread

notify via virtual terminal available packages Pòl Hallen <deben@fuckaround.org> - 2020-09-23 22:50 +0200
  Re: notify via virtual terminal available packages john doe <johndoe65534@mail.com> - 2020-09-24 10:40 +0200
  Re: notify via virtual terminal available packages Charles Curley <charlescurley@charlescurley.com> - 2020-09-24 15:50 +0200
    Re: notify via virtual terminal available packages Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-24 16:00 +0200
      Re: notify via virtual terminal available packages Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-24 16:40 +0200
        Re: notify via virtual terminal available packages Charles Curley <charlescurley@charlescurley.com> - 2020-09-24 16:50 +0200
          Re: notify via virtual terminal available packages Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-24 17:00 +0200
          Deterministic delays in POSIX shell scripts (Was: Re: notify via  virtual terminal available packages) Andy Smith <andy@strugglers.net> - 2020-09-25 09:50 +0200
            Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via  virtual terminal available packages) Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-25 13:50 +0200
              Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via  virtual terminal available packages) Andy Smith <andy@strugglers.net> - 2020-09-25 14:30 +0200
                Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via  virtual terminal available packages) David Wright <deblis@lionunicorn.co.uk> - 2020-09-26 04:50 +0200
      Re: notify via virtual terminal available packages Charles Curley <charlescurley@charlescurley.com> - 2020-09-24 16:40 +0200

csiph-web