From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 51C09231E2 for ; Mon, 1 Jul 2024 23:49:13 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1719870553; b=OPo5VjPIWZ4ZPiwVQqiyTDm9CSyzhliGIJhXxi+preCeeTA75/jSedFhKgDd23JLtsfYce5Sg7 AHjp4dF8GWCDqNeWtcHsBPuvhYmq20jCJ/uNNiPBi3wDJtPNkKfKTest1T/L6CdifS0tpuscF/ mul3R0sW2fk40TpwI8jTKD3kfjCe2oGjLms1TKQDyJwqlOmVngd372A6TnA2u4OUxh3r8/luzn rTrdVBLo0iZ2NATdvdWiS/EAkPpTYNC93rw1qNHh7ZWqyOjVk56vFknoMclABRuaF2yntBCrpp 1qz5OJ+uSkw3MU+k/K0ZpOkFbgudnxMrLBR3Z5biSQsxmA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pj1-f44.google.com) smtp.remote-ip=209.85.216.44; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1719870553; bh=mmyEGBpoEOpjTAN9ndqQMgZ9YvSKrsIQIKZYOUdTgUU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:Reply-To: In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=CpvbDmquXpUhq0PolnVymBbI/fSA3N3U8GGdmARaHBLepHE8JhFqD/65XYqk0uuiwtNpsaDhpi ZOZu+p/OmoFez7A5LR7IRjWJK8UqyYsid9eHiFqXBQNxg81UdRkVWjrHjmCksgRTMpUuR0Gnom ts4jxaLIcLHcQzuQM7nzCk4nhunETWplOayIMRGyzeMygtIey2GKbpt60rL+EeJ9maywJHO+9S BapUwFvDqFYGBnu2oxXb6e9H0oJzlzq4E3IikbbMzNukg6kG76fCXhfmmnjzQ3p1njH5i+IuP+ 7jlCEDIGqcS0OrjcPGuzMg+Z3D9LZImo99fj+ovZtZTirA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:Reply-To:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=FKYJeCx3vXfnYIh+SQf31LvvNbjxK5btH0v5XOnQHi0=; b=GvY67WHc9CApGXdKRD95MuUXfn 80WdgHAz4mtefMJH1CtxpQdcs1LSzLQPbPf4GzrMtR4LrWEY/WYzIElMpmg2sExjcnoRHsUDldrZs e3+F8OzmKf8AgRok8QikJOrYdpRpQK5NsS1Nzd6n/U3scNCs6D56jyr3axL3kipwlWTbprILZQc39 f6CnH5Pkz0WQWeID5WqdRmmIba0YLtMkL5GuCwqXkjUq/07LpjTxpt5Tr1iRzRkr7WUcsVByT8yHK 6Sz8KViDADmgWOpvRCrnUUhgGEPcEOnpnQH7bqLL5ON0+L2WgwQe8KQ6/I3ir9cdc2WwqdSbShb8o f8cO8TXA==; Received: by zero.zsh.org with local id 1sOOtc-000ObX-UM; Mon, 01 Jul 2024 21:49:12 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pj1-f44.google.com) smtp.remote-ip=209.85.216.44; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pj1-f44.google.com ([209.85.216.44]:50188) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1sOOsl-000Ntp-3G; Mon, 01 Jul 2024 21:48:20 +0000 Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-2c80637ee79so2310568a91.0 for ; Mon, 01 Jul 2024 14:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719870498; x=1720475298; darn=zsh.org; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FKYJeCx3vXfnYIh+SQf31LvvNbjxK5btH0v5XOnQHi0=; b=BY/uoDCoPv6EblmUSH9zvz2AyDKhAV2W7oz6BBpsUYrst7kvKQqNx1Z5agjQPvT5pY f8qL/M5GYlBel3L0cRXZvKJ0wQd5k4zxfufsb/C8EbCxCK7hvZROipibwFI3yxzMgR+J DhzQB3+i+ZG7nS19DXqKNpZePhU1+++kyJFsJDcrqgLhRn0Z+0idcJ1nKH50JrtWmKSq EHTL1R05BB6KF1a3NujffqesYf4HgqL92AjwcuIcwp4S4IzYSe+JM1iAOBto+dVQh6cL YmuZP6T6sz+GWicTFixK302DAC81j2Uc7krL+jfVfoNraphkNw2pvFhRXAYQYQi/8XEa Lkqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719870498; x=1720475298; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FKYJeCx3vXfnYIh+SQf31LvvNbjxK5btH0v5XOnQHi0=; b=R6LpmS6um/rP8ckFyAQll2oSBWPiDm3/1U3w6Rlmrb8XikeUhSbAlbmKX/S+/zOFUG M4C6IgQoGl5pxEb7MrGaK6+RN9mXEMw2+AvZR2N6K0/kD9CqTxpbNIzBgj05lamzswI3 59H00Qk18RoVbDS1vFuuLfOrzdnyq+tSABsmz2iEvY1tPKeNzkrm6wLIaimLdIM6cRpc ltVaaEXnFlNPDbCq0Y4o/Ktua9EvAMejwi1Rkz5xIl4B98sDpBVUtkEnXHAU5Z/olsrK wJa/l7YE8V1k7slzgEJsQ7lslA73aDu5i27OnbDBLSCZ9+ASicI0bKyBcC5onmgoC2j9 cspg== X-Gm-Message-State: AOJu0YydjEqBuyrjIkwwPKRtayHWqkNOyIt0uc4YgOeNn3YBKmAbKO3b Atg0q5l/5Y/wx/iF7di4QbkiD/cdIyFXEXuMxJHUew0RWrDUjPJjPNEM2ZnRQRGAIo930XrBSnt MZGlby3DHZ3/ojHNNbU1OlbWH5yc= X-Google-Smtp-Source: AGHT+IFEL+02B+Slk6wJyttSegdTZWmDBBljGqFU9zYjiREI/QT7DJzkYQ/E4wyYz2JcFNF4i/lUriCcywpbD2HanZs= X-Received: by 2002:a17:90a:5786:b0:2c7:5d91:7ebc with SMTP id 98e67ed59e1d1-2c93d7525d6mr3779071a91.25.1719870497531; Mon, 01 Jul 2024 14:48:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: linuxtechguy@gmail.com From: Jim Date: Mon, 1 Jul 2024 16:48:05 -0500 Message-ID: Subject: Re: From zsh back to bash To: Gunnar Erik Gervin Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="00000000000010af3c061c368ef2" X-Seq: 30039 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --00000000000010af3c061c368ef2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Gunnar, On Mon, Jul 1, 2024 at 2:40=E2=80=AFPM Gunnar Erik Gervin wrote: > How do I find out which shell options I have in a zsh terminal? > How do I set the standard shell (in an iMac from 2017) to be bash instead > of zsh ? > "Why?" you maybe ask. To get the terminal do bash commands (=3Dall) is th= e > answer! > BR, > Gunnar Gervin, Java student > To hopefully answer your first question, the following should output all the options and whether they are set or not. L=3D${#${(Ok@)options//?/X}[1]} # get max option char length for output alignment for opt (${(ok)options}) print ${(r.L.. .)Ele} ${options[$opt]} Not a Mac user so I will let someone else respond to the other questions. Regards, Jim Murphy --00000000000010af3c061c368ef2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Gunnar,

On Mon, J= ul 1, 2024 at 2:40=E2=80=AFPM Gunnar Erik Gervin <erikggervin@gmail.com> wrote:
How do I find out = which shell options I have in a zsh terminal?
How do I set the standard= shell (in an iMac from 2017) to be bash instead of zsh ?
"W= hy?" you maybe ask. To get the terminal do bash commands (=3Dall) is t= he answer!
BR,
Gunnar Gervin, Java student
<= /blockquote>

To hopefully answer your first questio= n, the following should output all
the options and whether they a= re=C2=A0 set or not.

=C2=A0=C2=A0 L=3D${#${(Ok@)op= tions//?/X}[1]}=C2=A0 # get max option char length for output alignment
=
=C2=A0=C2=A0 for opt (${(ok)options}) print ${(r.L.. .)Ele} ${op= tions[$opt]}

Not a Mac user so I will let someone = else respond to the other questions.

Regards,

Jim Murphy
--00000000000010af3c061c368ef2--