Received: from mail.l3u.de (mail.l3u.de [IPv6:2a01:4f8:1c1c:d482::1]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id A1283223649 for <~alpine/users@lists.alpinelinux.org>; Thu, 30 May 2024 14:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stonemx.de; s=default; t=1717079446; bh=3sEXQ/qQiM1i/+NZQz399U/ildof6LO7MTWSsy09ahM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tfPJ6H5DhIy8j27WwfuKQ2PfZwHu1VN9NjeDq3dgkoxJQQ9945J+3p2I24IvqAGQv I4j+Xg3XChWMeSU0ytnfVdKQJNGcaF1ZOTWduOYIh7BO/S6f8UI9FMcldAvePjmQ2l qEakBZBTurLYQKeTgdaMc4LsD+cQVbtIzAl7gnGUVvs9052DSlWsIUPtPrfs/6m4KW LrkqJ9Wk0qDOqW3Tc8YaDuUcPapJHj9m+CQvW0cwS9JUAQT0hRGC8d/DUrJnJhMlrI L2m2w5/lKq7hBuT26j/5/usKy5XSrKJeA35tZHr9puMbK781dYwWWazOVLovAmI4R5 TzufGte+HKCgg== Received: from ginuog.localnet (p200300e7a7116000a8e730fffe3150ed.dip0.t-ipconnect.de [IPv6:2003:e7:a711:6000:a8e7:30ff:fe31:50ed]) by mail.l3u.de (Postfix) with ESMTPSA id F1DC0FF083 for <~alpine/users@lists.alpinelinux.org>; Thu, 30 May 2024 16:30:45 +0200 (CEST) From: Tobias Leupold To: ~alpine/users@lists.alpinelinux.org Subject: Re: ash and su/su - Date: Thu, 30 May 2024 16:30:45 +0200 Message-ID: <2031322.kXSN5OTJKJ@ginuog> In-Reply-To: References: <1926392.IobQ9Gjlxr@ginuog> <4151433.6PsWsQAL7t@ginuog> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" E-Mail von juef vom Mittwoch, 29. Mai 2024, 21:48:15 CEST: > (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=5353df91cba7b397b94 > 07701681708d0a1518df6#n333 > > { /* "=" */ STREQ , BINOP }, > /* "==" is bashism, > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html * lists > only "=" as comparison operator. > */ > { /* "==" */ STREQ , BINOP }, I didn't knew that! "Bashism" :-D -- that's even more funny as it almost sounds like "beschissen" in German, which translates to "crappy" or "shitty" :-D It's very nice from the Busybox guys that they take care of us Bash folks ;-)