NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ssh-agent on 32-bit NetBSD?



On Mon, 23 Nov 2026 22:20:27 +0700
Robert Elz <kre%munnari.OZ.AU@localhost> wrote:

>   | Sprinkling a few debug prints indicates that the construct:
>   |
>   |     echo " socket: " $SSH_AUTH_SOCK
>   |     [ -S "$SSH_AUTH_SOCK" ] || echo "  sock1: " $SSH_AUTH_SOCK
>   |
>   | is the problem. Both echoes show $SSH_AUTH_SOCK as blank.
[...]
>  The test for
>   | a socket works as expected on 64-bit but not on 32-bit.

Now I am seriously confused:

set$ echo $SSS                                            

set$ test -S "$SSS" && printf "it (%s) is a socket\n" $SSS
set$ [ -S "$SSS" ] || printf "it (%s) is a socket\n" $SSS 
it () is a socket
set$ 

alternatively:

smoothie$ echo $SSS                                           

smoothie$ [ -S "$SSS" ] || printf "it (%s) is a socket\n" $SSS
it () is a socket
smoothie$ test -S "$SSS" || printf "it (%s) is a socket\n" $SSS  
it () is a socket
smoothie$ test -S "$SSS" && printf "it (%s) is a socket\n" $SSS

set is amd64 (i7) and smoothie is i386 (Celeron).

It works the same on both, so it's actually been wrong on both? At the
bottom of page 67 of my Bolsky and Korn it says "|| Runs the command
following the || only if the command preceding the || returns False.  &&
Runs the command following the && only if the command preceding the &&
returns True"

-- 
Ted Spradley
I remember when bits were forged from rings of iron and bytes were
hand sewn like baseballs by women in Puerto Rico. Yes, I am very old.


Home | Main Index | Thread Index | Old Index