From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 4bf0c771 for ; Wed, 20 Feb 2019 13:49:55 +0000 (UTC) Received: (qmail 4073 invoked by alias); 20 Feb 2019 13:49:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44074 Received: (qmail 3226 invoked by uid 1010); 20 Feb 2019 13:49:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-it1-f176.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.166.176):SA:0(-1.7/5.0):. Processed in 1.15054 secs); 20 Feb 2019 13:49:39 -0000 X-Envelope-From: gpk188@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.176 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MpUMbdkN1hsne83yxz3ZRylxhFtD70UbEazKsjJo6po=; b=CibAqz7kG0ES9fo6jYHK6iFlF61WJRGs6CrTv4Q8z1K4dTVacU81QTN8u5EvXMufhc pnNGPfRxjAXDgV4DY8go5R706DPNzPi/PwwjR7DKnPioHRS3NjfNPFqP78JKM2VQ/woz ciVr+l1vApWQrt/YYNX9FbQVVzSZvarjV70Qu9SeFIy+VCIN1MQZQPt6u0dQvdj5znAP EiZ+soJO5o7t6Xe0ZiSQaOczn/fvFOfEO/EKxZ+GLd4vH1E1fgm4mJFDccVawj35ocZY NAW1VSJnvB+ajlJpNq/U+IMISm44PrKmeyPp0OxILZ1bn29a8hqdt41bMHVOn+JDDyr6 ujGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MpUMbdkN1hsne83yxz3ZRylxhFtD70UbEazKsjJo6po=; b=hdyfjI3ds5G+lKMBWD84dHkF9ORpkZMshRs6lLjKeOuhgkePt2xenkO/dw00QKg0Ji IuIqgMHJRWxKXknojMCILZHa3p4dMyheVGunoTmShrH8CuvCCdekS66USIF7nIUJF61X kU261jdWb3DowapDaOdUF76hIzMTtVZRiHFLi8toYS7az55p5N8V6L72uFMzqpPosRFs A3GenaTPQoXzUTUSRntBtllHh2oz2165VKOMTYx6eiFF+sULeRiHvL8MvuGyf0CDaVtX 7s/BglN8yt7v6xea3saLRGpTDkAgM381ATG4tA/Pj1GQNHQWxfXHIlbaDr6m1pNiXzK/ KJJA== X-Gm-Message-State: AHQUAuaG2G2gloYVoC3s32aL3iX7SL204JdV/2G72Q7uZIbEPzxtJHTa oH8kat0dShPZIvWavqhHid9jIpvJTpoWBe4QoSk= X-Google-Smtp-Source: AHgI3Ias8CpOGE1d53IYjQ4MF1S0hpQe0XXvTEFE/Z3tciTfg+wzNnxFLimfJlchwpdYkacSQscRJndCP+MNakoq6cQ= X-Received: by 2002:a24:dd0a:: with SMTP id t10mr5245218itf.122.1550670544294; Wed, 20 Feb 2019 05:49:04 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Gu=C3=B0mundur_P=C3=A1ll_Kjartansson?= Date: Wed, 20 Feb 2019 13:48:52 +0000 Message-ID: Subject: Re: Possibly a bug involving rcs flag on mac? To: Bart Schaefer Cc: Zsh hackers list Content-Type: multipart/alternative; boundary="000000000000f4dc760582539e1d" --000000000000f4dc760582539e1d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > I'm not sure what to say about that; is it possible that $HOME is set > incorrectly or that $ZDOTDIR is set? This was my problem ... I had completely forgotten about $ZDOTDIR. I just found out that in one case the shell was running ~/.zshrc and in the other case $ZDOTDIR/.zshrc I managed to fix that issue by letting one of those files source the other. > You have misunderstood how the shell options work. Yes ... I mistakenly thought that --rcs worked the same way as --rcfile in bash Thank you for your help! On Wed, Feb 20, 2019 at 5:11 AM Bart Schaefer wrote: > On Tue, Feb 19, 2019, 3:05 PM Gu=C3=B0mundur P=C3=A1ll Kjartansson wrote: > >> Greetings >> >> I have some strange buggy behaviour going on. If I run zsh in a bash >> terminal window, it will not run .zshrc: >> >> $ zsh >> > > I'm not sure what to say about that; is it possible that $HOME is set > incorrectly or that $ZDOTDIR is set? Does zsh appear otherwise to be > interactive, i.e., it prints prompts and ZLE is working? > > If I instead do this: >> >> $ zsh --rcs ~/.zshrc >> >> Then it will run .zshrc ... but it will also exit immediately > > > You have misunderstood how the shell options work. If you give the shell > a file name as an argument, it reads that file for commands and then > exits. The --rcs option does not change that, it merely says that it's O= K > for the shell to read the usual startup files as well (where "usual" > depends on whether the shell is interactive, is a login shell, etc.). > > --rcs is the default, so ordinarily one would be using --norcs to turn > them off instead. > > ... this >> happens even if I run it in interactive mode: >> >> $ zsh --interactive ~/.zshrc >> > > Yes, even if the shell is interactive a filename argument means to read > the file and exit. > > To force the shell NOT to read commands from the argument file, you must > use the --shinstdin option. There is no simple way to cause the shell to > first read a file and then continue reading from stdin / the terminal. > --000000000000f4dc760582539e1d--