Received: from mail.l3u.de (mail.l3u.de [195.201.147.189]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 6274A223619 for <~alpine/users@lists.alpinelinux.org>; Sun, 26 May 2024 08:03:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stonemx.de; s=default; t=1716710602; bh=1QFOWo/J4fH2m/fzCJqCdBlse6VqUk3/sMV+tIAPKbI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=56YItW0X3glPuDnP0UrAuHBI7kKf4DtJasHbwZICq5Y92AsvRr0i9XYT05dVm+q7w EDB3UoM8A4XT+DrL5ZaWDdQUM6/xS2v3JRm+JCvz23RiOaF5no97ZAfkfoznw01rFy n4M/tz+MQpLy6mv+Y6WT9HzvRPT/AZogVTxFN7kY9NcZ64nb1+DEmV0sWb3W41g8TR yAFnsDmMjimL2ezeeQHMEIgw5Za31InWpx8CNrTfDDNZW8cUhfGMh8TQ99v2qWX0EC auSlp972ZmSwFVD9NjHjkEtgZ3xukFbUmywHwkYMzF6pXq1673rutFnTvgliEPHqD0 JLSY34NUqZLIg== Received: from ginuog.localnet (p200300e7a717b900a8e730fffe3150ed.dip0.t-ipconnect.de [IPv6:2003:e7:a717:b900:a8e7:30ff:fe31:50ed]) by mail.l3u.de (Postfix) with ESMTPSA id 76A54FF083; Sun, 26 May 2024 10:03:22 +0200 (CEST) From: Tobias Leupold To: Steffen Nurpmeso Cc: ~alpine/users@lists.alpinelinux.org Subject: Re: ash and su/su - Date: Sun, 26 May 2024 10:03:21 +0200 Message-ID: <2207810.C4sosBPzcN@ginuog> In-Reply-To: <20240525230708.4BKNEgwF@steffen%sdaoden.eu> References: <1926392.IobQ9Gjlxr@ginuog> <20240525230708.4BKNEgwF@steffen%sdaoden.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi Steffen! > One is a full login, the other only starts an interactive shell > i would think. Look at the content of $- and source your profile > if you really want to. $- is "smi" -- IIRC, this variable contains the options set for the current shell. But I don't think this helps here? Of course, I could manually source my ~/.profile after an "su". But I would like to automate this. Mainly, it's about my PS1 ... > (Or create a file to source with all the things you really always want, and > put in .profile only things really needed for login sessions etc.) Which file would that be? Cheers, Tobias