From nobody Thu Sep 05 18:37:06 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X07PX3P0qz5Tc2M for ; Thu, 05 Sep 2024 18:37:04 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "generic", Issuer "generic" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X07PX1MqHz4NMJ for ; Thu, 5 Sep 2024 18:37:04 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.17.1) with ESMTPS id 485Ib7ne031029 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 5 Sep 2024 11:37:07 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.17.1/Submit) id 485Ib6MR031028; Thu, 5 Sep 2024 11:37:06 -0700 (PDT) (envelope-from fbsd) Date: Thu, 5 Sep 2024 11:37:06 -0700 From: bob prohaska To: Michael Stiller Cc: freebsd-arm@freebsd.org Subject: Re: Path puzzle Message-ID: References: <105EB88C-1438-4BC6-9561-A92B82743AA2@me.com> List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <105EB88C-1438-4BC6-9561-A92B82743AA2@me.com> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US] X-Rspamd-Queue-Id: 4X07PX1MqHz4NMJ On Thu, Sep 05, 2024 at 08:27:21PM +0200, Michael Stiller wrote: > Hi Bob, > > i guess the interpreter which should be in the first line after #! is not found. > > Please show the first few lines of the script using "head server_try" bob@pelorus:~ % head server_try #!/usr/bin/python3.11 #+ # Example use of Python’s ssl module: server-side. # The code is written to avoid blocking on actual socket I/O, to make # it easier to adapt to asynchronous usage. # # See the README for details on how to set things up to run this script. # # Copyright 2022-2024 by Lawrence D'Oliveiro . This # script is licensed CC0 ; For completeness: bob@pelorus:~ % echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/home/bob/bin:. bob@pelorus:~ % Thanks for writing, bob prohaska > > > On 5. Sep 2024, at 20:24, bob prohaska wrote: > > > > I've got a stable/14.1 system which declines to find programs > > in the current working directory: > > > > bob@pelorus:~ % ls > > auth client_try public_html server_try ssl > > bob@pelorus:~ % > > bob@pelorus:~ % ls -l server_try > > -rwxr-xr-x 1 bob bob 8542 Sep 3 14:08 server_try > > bob@pelorus:~ % ./server_try > > ./server_try: Command not found. > > > > I've tried adding . to my path, but that doesn't seem to help. > > > > Server_try is a python script, if it's run using: > > > > bob@pelorus:~ % python3.11 server_try > > Traceback (most recent call last): > > File "/usr/home/bob/server_try", line 51, in > > raise getopt.GetoptError("usage: %s «ca-cert-file» «server-cert-file» «server-key-file»" % sys.argv[0]) > > getopt.GetoptError: usage: server_try «ca-cert-file» «server-cert-file» «server-key-file» > > > > it fails for (I think) unrelated reasons. The script works as expected > > on Debian Bookworm. > > > > I've tried starting csh and sh, the behavior is unchanged. Running > > rehash likewise has no effect. > > > > This is a fairly new installation with home directories under /usr but > > with the original empty /home directory still in place. > > > > I must be doing something dumb, but am unable to recognize it. > > Any suggestions appreciated! > > > > thanks for reading, > > > > bob prohaska > > > > > >