Deutsch   English   Français   Italiano  
<1a876l-53v.ln1@ID-313840.user.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.tomockey.net!2.eu.feeder.erje.net!feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Geoff Clare <geoff@clare.See-My-Signature.invalid>
Newsgroups: comp.unix.shell
Subject: Re: Default PATH setting - reduce to something more sensible?
Date: Wed, 22 Jan 2025 13:26:57 +0000
Lines: 15
Message-ID: <1a876l-53v.ln1@ID-313840.user.individual.net>
References: <vm5dei$2c7to$1@dont-email.me> <vm5qc7$ft9$1@reader2.panix.com>
	<vml04v$2ugq2$1@dont-email.me> <vml2ho$30d8f$1@dont-email.me>
	<871pwwwtee.fsf@axel-reichert.de>
Reply-To: netnews@gclare.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net V9gJ6MDDiXpVhoceuu8iygAO0axqmP5cffroOVSIYb64uzStJO
X-Orig-Path: ID-313840.user.individual.net!not-for-mail
Cancel-Lock: sha1:mHzyNXtQ4CiwXQr/ZbqUB8+aPV8= sha256:dA1bjuEuDq7nls9MOLq1tnDXuR0KFWip10Qsb+v8jIM=
User-Agent: Pan/0.154 (Izium; 517acf4)
Bytes: 1535

Axel Reichert wrote:

> tilde expansion is not, AFAIK, included in POSIX

Incorrect.  See XCU 2.6.1 Tilde Expansion, which includes the following:

    In an assignment (see XBD Section 4.26), multiple tilde-prefixes
    can be used: one at the beginning of the word (that is, following
    the <equals-sign> of the assignment), or one following any unquoted
    <colon>, or both.

The reason this is there is for things like PATH=~/bin:~/sbin:/bin:...

-- 
Geoff Clare <netnews@gclare.org.uk>