Received: from mx.unresolved.name (mx.unresolved.name [159.69.114.67]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 2859222363A for <~alpine/users@lists.alpinelinux.org>; Wed, 29 May 2024 19:48:19 +0000 (UTC) Date: Wed, 29 May 2024 22:48:15 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juef.net; s=rsa_2023; t=1717012098; 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=V7CPdDbmeXVHSNhTib9zqz1foiMSJifWmTMV7X7trl8=; b=cWKc6aYKCfh1MuV/b5ek5BoIo+tekiYChcFNx+0HyjaUF0eUnqO534thDkTRtnrugWQETT qwesGAIH+ylBeRsViwGu9x8MkkSAU9N7116c49Y/xbgLF3uU+2SxmmdR0WyHeiy/wRfI+P 8EIykRXn3ZvlNYZEZEPdBSiADEObFFiyWbz3QBIbHCwXEabI7jaRYUEC1lwugPuJiZr8so wISreRisWVI3DAuoglNZKk4yl8e9ltXlwOdtmQI8hcb9aWLuO7LFppkQTH0UvCafdYqNCS WDwgf2l4St4GiD4UWAb/cQZGfM41SrURwqGhHu2bmz4OlcnyHLuO/d8Rwi3wkw== 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> <2369059.BjyWNHgNrj@ginuog> <4151433.6PsWsQAL7t@ginuog> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4151433.6PsWsQAL7t@ginuog> (Wed, 29 May 20:23) Tobias Leupold: > if [[ "$(whoami)" == "root" ]]; then > PS1="\[\033]0;\u@\h:\W\007\]\[\033[01;31m\]\h\[\033[01;34m\] \W #\ > [\033[00m\] " > else > PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \W \$\[\033[00m\] " > fi Nitpicking ;) both `=` and `==` are equal but https://git.busybox.net/busybox/tree/coreutils/test.c?id=5353df91cba7b397b9407701681708d0a1518df6#n333 { /* "=" */ STREQ , BINOP }, /* "==" is bashism, http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html * lists only "=" as comparison operator. */ { /* "==" */ STREQ , BINOP },