9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Stanley Lieber <sl@stanleylieber.com>
To: 9front@9front.org
Subject: Re: [9front] tlsclient and hjgit for unix.
Date: Sun, 21 Feb 2021 11:01:15 -0500	[thread overview]
Message-ID: <A6B56CAE-7CD3-4A10-B655-8200C1597DC8@stanleylieber.com> (raw)
In-Reply-To: <CALoggGKRNNGBSAazSNepUj2ESiQ0Qw-kfaYeWEwB_kzDvYdtPA@mail.gmail.com>

On February 21, 2021 4:49:34 AM EST, J D <jakdecidus@gmail.com> wrote:
>On Sat, Feb 20, 2021 at 8:05 PM Jacob Moody <moody@mail.posixcafe.org> wrote:
>>
>> > On February 20, 2021 7:24:50 PM EST, ori@eigenstate.org wrote:> diff --git a/libc/genrandom.c b/libc/genrandom.c> index 42522aa..890c291 100644> --- a/libc/genrandom.c> +++ b/libc/genrandom.c> @@ -3,10 +3,10 @@>> #undef long> #undef ulong> -#include <sys/random.h>> +#include <unistd.h>>> void> genrandom(uchar *buf, int nbytes)> {> -        getrandom(buf, nbytes, 0);> +   getentropy(buf, nbytes);> }>
>> Thank ori this should be applied now.
>>
>> On 2/20/21 7:39 PM, Stanley Lieber wrote:
>> > rachael$ 9cpu
>> > ./9cpu[35]: syntax error: `(' unexpected
>> >
>>
>> Try running it with ksh instead or changing the bang line to ksh.
>> It's erroring out on the process substitution.
>> Not sure what the best way to handle this is(for using the right shell
>> for the right system).
>>
>>
>> Thanks,
>> moody
>
>Hopefully HTML is not rudely inserted into my email this time by the
>evil google.
>
>Maybe instead of
>
>USER=$user AUTH=$auth CPU=$cpu tlsclient -p 17019 sh <(cat <<EOF
>printf '%7ld\n' $len
>echo $cmd
>cat </dev/tty 2>/dev/null &
>cat >/dev/tty 2>/dev/null
>EOF
>)
>
>Try
>
>{
>cat <<EOF
>printf '%7ld\n' $len
>echo $cmd
>cat </dev/tty 2>/dev/null &
>cat >/dev/tty 2>/dev/null
>EOF
>} |  USER=$user AUTH=$auth CPU=$cpu tlsclient -p 17019 sh
>
>I'm not in a position to test this, but it should be fine, assuming
>I haven't misunderstood something (likely I have). If this works, it is
>also POSIX compliant behavior, as opposed to relying on ksh or
>some particular shell.
>
>Please don't yell at me for mentioning POSIX on this list :)
>

on openbsd sh *is* ksh (well, pdksh):

rachael$ cmp /bin/sh /bin/ksh                          rachael$

sl

  reply	other threads:[~2021-02-21 16:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-20 22:32 Jacob Moody
2021-02-20 23:39 ` sl
2021-02-21  0:24   ` ori
2021-02-21  1:39     ` Stanley Lieber
2021-02-21  2:43       ` Jacob Moody
2021-02-21  9:49         ` J D
2021-02-21 16:01           ` Stanley Lieber [this message]
2021-02-21  2:23 ` ori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A6B56CAE-7CD3-4A10-B655-8200C1597DC8@stanleylieber.com \
    --to=sl@stanleylieber.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).