BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Subject: [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: richard.pieri at gmail.com (Rich Pieri)
- Date: Thu, 22 Jun 2023 23:15:47 -0400
- In-reply-to: <20230623010738.GP24375@bladeshadow.org>
- References: <20230621163508.GJ24375@bladeshadow.org> <CAJFsZ=ozzcstj4NMy5Mzsbuzmxhd6bkFBMwte-QMQm9dYDj9sQ@mail.gmail.com> <20230621232655.jkt5rsxybsofpy7x@randomstring.org> <20230621194331.00005d05.Richard.Pieri@gmail.com> <20230622200719.GN24375@bladeshadow.org> <20230622172659.0000246c.Richard.Pieri@gmail.com> <20230622222338.GO24375@bladeshadow.org> <20230622192215.00006b94.Richard.Pieri@gmail.com> <20230623010738.GP24375@bladeshadow.org>
On Thu, 22 Jun 2023 20:07:38 -0500 Derek Martin <invalid at pizzashack.org> wrote: > I'm not sure what nonsense you mean--I'm still waiting for you to > refute a single point I made with actual facts, but I'm glad you're > enjoying yourself. :) ----------%< cut here %<---------- #!/bin/sh # Little bit of code to identify the OS goes here. # I can't find my old osname script, but looking at the output from # uname is a good place to start if you want to try this at home. case $OS in sunos4) PERL=/usr/bin/perl;; solaris) PERL=/opt/bin/perl;; ultrix) PERL=/usr/local/bin/perl;; aix) PERL=/opt/local/bin/perl;; netbsd) PERL=/usr/pkg/bin/perl;; esac exec $PERL $HOME/bin/myscript.pl $* ----------%< cut here %<---------- The assertions you made: Need PATH, or symlinks, or env, or multiple copies of program with different names, or I'm SoL. Here is one program, and one wrapper, that work everywhere without using PATH or symlinks or env. You're welcome. -- \m/ (--) \m/
- References:
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: invalid at pizzashack.org (Derek Martin)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: bogstad at pobox.com (Bill Bogstad)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: dsr at randomstring.org (Dan Ritter)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: invalid at pizzashack.org (Derek Martin)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: invalid at pizzashack.org (Derek Martin)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: invalid at pizzashack.org (Derek Martin)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Prev by Date: [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Next by Date: [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Previous by thread: [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Index(es):