Received: from mx.unresolved.name (mx.unresolved.name [159.69.114.67]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 96CC2223656 for <~alpine/users@lists.alpinelinux.org>; Wed, 29 May 2024 12:21:04 +0000 (UTC) Date: Wed, 29 May 2024 15:20:57 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juef.net; s=rsa_2023; t=1716985262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=np/GAwYsEQiXfHTJBAzYKR7AFctdAFuxtgLPSz35zr4=; b=aBtbJWQQlXwKU2slJ2E3N/UOStKCVhL6ShNHCdpbTrjx32AM2JHvWhk7AYBD+rMSLH+wan xadzbP8cZ5qH4dI9TJ1n0bTN8T96sOgswRV315nUxWV7tsomlXk1J53eC7/IBqvfE110rb XMFZneljKfPZoqID9ctHIFTn3yQFeRk9ccEHPitYReGTPigKG/j7xqEb+WmctLIBoqtEtG 9yAvi3wWVcjYWaNEX4rdakW8TR/ceK0ra8BTupJbtOyzDhF4T7bUv9qJx5kVeSi1DnEvAC oHuaj5IVW6x2JDpVvtRitl4OCnMkT5y+oDKOSEDafV0D/3oylIq4yjtDjoEWjw== Authentication-Results: ORIGINATING; auth=pass smtp.auth=juef@juef.net smtp.mailfrom=juef@juef.net From: juef To: ~alpine/users@lists.alpinelinux.org Subject: Re: ash and su/su - Message-ID: References: <1926392.IobQ9Gjlxr@ginuog> <2207810.C4sosBPzcN@ginuog> <20240527204907.py3IhgpW@steffen%sdaoden.eu> <2369059.BjyWNHgNrj@ginuog> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2369059.BjyWNHgNrj@ginuog> Hi, (Wed, 29 May 12:42) Tobias Leupold: > When I do a plain "su", I get a prompt that would be defied as "\w #". Where > is that defined?! It neither matches /etc/profile, nor the PS1 definition in > my user's ~/.profile, nor the one in /root/.profile ... It's probably here: https://git.busybox.net/busybox/tree/shell/ash.c?id=c5a1be25ba6dd705382ce6c25d96a32f79974c04#n2316 also see: https://git.busybox.net/busybox/tree/shell/ash.c?id=c5a1be25ba6dd705382ce6c25d96a32f79974c04#n14757 if you define ENV, than it will load, i.e.: cat /tmp/test-env PS1="\u@\h:\w # " export ENV=/tmp/test-env