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 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: <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 of the assignment), or one following any unquoted , or both. The reason this is there is for things like PATH=~/bin:~/sbin:/bin:... -- Geoff Clare