From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31637 invoked from network); 4 Oct 2022 07:56:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Oct 2022 07:56:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1664870161; b=d5fmGiOl3dPja5V8fcLJktys2PaaUU1IsSiqQPFnJzWdoky7G3JHKYhrBgY5bWGueJLuzxNHHM kjRKexdpl0YEIU5PGnuvOneiuqxZd2EiSpnrupyWV6h1vhnt0T6qbqNR+5IqP7JBMsajmOngel iFq7vfCJwvInOcybuFr4fFfaF+XIz1b0z4JWHSbF0s8jw3SHp1H0f5WjVmbAassFFH79yf0g3X hrikMgc1UZXtg0xQ/iMIz180u6MufAoW1ftXAcEGqYV1+I0m9GTFfbZ1SBxhuZbrBWR8r3wDa4 mgFmXWmqU4MPmF0nAUwo416O20lE6UmXa1gpeQdSz+G98g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f178.google.com) smtp.remote-ip=209.85.219.178; dkim=pass header.d=gmail.com header.s=20210112 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=1664870161; bh=vom7jr6owknSc29EdSXzU3jDjMXpdBFxuLsqeDHHvBw=; 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=AwDvJ+Qssq86QQmyjDH9cruq3uwC3XVMdeUiXit88TXSlxhjFSyeGxlMUGCn7UzAWSFk8F4Iw/ zqFRgDiGjKi8+PHwmIoPyxTdDynF7TeWIRytExMNbmbINdremVy8l01ELpcTm74mWeNJPOOz4n 8bzuI2pNF3Y2XXa2BixFKOD1dRKLEn6Z3JSkhMU1E/hww945alTKC8S1Qxj5DbEG03tMO86CIL DA6EdJqlCkYZa3IbXx0k+hbbKSEp+A2OAWYgtop2vurpFg0BgG6d6MAD5Uox1+7emo4I2foCgG 79/V3AuoSK+JKp5OX+LoLH+Mud8zNbS3SjPSoe6mQRhpgw==; 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=ojz+oynqwhkNaM3S+NKZHXjQgkWQBy1TUzGJ1ZxX694=; b=KoKKn1lJaE/FrERpyFv6MqQmNq P0xcHdz/l+NdkFpGhZQjcFtEA08xs2sqxNfFBefmH3ht2lNxYLZlD0durdg47fp5XM0oKnpruedhO I6jG5XwqQoNCV9dBkNlIE4+stCTpYNpAojhJUiioxF7CffVqYhnHPT83/PDgQf/anpi/jCdYFmWtV r6SGS45BEn3U0nCzO4iPBEiqSKyo8exZNBkvhaEv8pVEuqTzgXL2u19DmRIR9cgoZvpxceLYvLG1l x86rP9iUKif1s+ryeH5XbH3jHilMkdFLDpPMRF3KuvjFT04CnU3TvbcMeSPiQOo3AyJDU4Fq8p9p0 iC+d7t8w==; Received: from authenticated user by zero.zsh.org with local id 1ofcmW-000Oxk-VR; Tue, 04 Oct 2022 07:56:01 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f178.google.com) smtp.remote-ip=209.85.219.178; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yb1-f178.google.com ([209.85.219.178]:35697) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ofcmF-000Ocx-Rz; Tue, 04 Oct 2022 07:55:44 +0000 Received: by mail-yb1-f178.google.com with SMTP id e20so1377042ybh.2 for ; Tue, 04 Oct 2022 00:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=ojz+oynqwhkNaM3S+NKZHXjQgkWQBy1TUzGJ1ZxX694=; b=N6fop5UNHIBlT+FsCK3hFID9JB0mAPcJuCZU6PKLsZb7YQOjbw6H4GCzUbJszZQps3 cWCuifaIEhGkXLFtfPidAtvWtngzk4fgoN2Ml+NQCI8n0ivJl4kA206Je5xd2a2irRJv DV8dWwhkIz6EjNEb5slGt/lT/sN44Pkg1N7eTP8IzSZasr0/U+wheycn83Gj1yXZ65MV kx0oz71Z92pZ/uKEEVq5dGdNcbgUpSBy/92Zob+/AGP2eP/tA4ep7++zvpOM5GdgyWL9 x11nmt+aZgHDBtLFsx6/K2Pnl/aBUf+lN6FXF7FMhewc5vr4ActaJoKaY3OCqo8Jhu07 FqBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=ojz+oynqwhkNaM3S+NKZHXjQgkWQBy1TUzGJ1ZxX694=; b=JaCnb9qQ2pygWhdlyT20y+aw5zYD9PmQNgalnx2jebx/9zcpWInkHSLi3OLgv1pSR3 CNykJtl8e3B6LCaW2XS9gfFcDWsVApSLFVyrCT1dSABU96Xa541k+tEtytUNKzUrwWQM BhK0oP/qHN/XD69Jws6AwaBqOi8cDdf2sO0xV/1v7c7hS5CtpYuz6/XWxDJvXHZfJmSK XUihyb6J9tKidy9o4nEGbvSg7U+ncg4lt7Swx83+nqTQMIu2TPX92ezx+vq5djzbVpcC bfPuOPqcZJBu5sfJkWnnUJSZ1AymFTLybHz9eKvZPp0EAB/Tq3/ByML8ZX3LVy6Ektkj Xy7g== X-Gm-Message-State: ACrzQf2QOnUc0Km8/4eG+eJkzYpEIVvHojoDDY8fKUdXYdfA7OuQziQx d/1qw0HLbXd0uyUVAvR6gNxKi9A5f1DIWd7LCCs= X-Google-Smtp-Source: AMsMyM7DdiyUrc4l9j+R97MNeACXvgDpfYG7Ph1mvp3tx04InhDVNbZRd39NmDBEW4m3Hn0cUNXt6sosxmXB2m8j2Dk= X-Received: by 2002:a25:8b11:0:b0:6bc:fdf:ecef with SMTP id i17-20020a258b11000000b006bc0fdfecefmr22185194ybl.367.1664870142618; Tue, 04 Oct 2022 00:55:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: linuxtechguy@gmail.com From: Jim Date: Tue, 4 Oct 2022 02:55:28 -0500 Message-ID: Subject: Re: command line tabbing message '_arguments:comparguments:409: not enough arguments' To: Jun T Cc: devs Content-Type: multipart/alternative; boundary="00000000000072b4c305ea30c911" X-Seq: 50733 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --00000000000072b4c305ea30c911 Content-Type: text/plain; charset="UTF-8" On Mon, Oct 3, 2022 at 11:37 PM Jun T wrote: > > Sorry, if FPATH is exported then it is inherited by the child > zsh even if it is started with option -f. So the above will not work. > > You can check whether FPATH is exported of not by > If it shows 'export ...' then it is exported. You can 'un-export' it > Sorry, as soon as I saw "if FPATH is exported" I figured out what was happening. My .zshrc file makes sure FPATH is exported. This is because some scripts/functions I wrote failed if FPATH wasn't exported. So, I export it all the time. I didn't consider what this would do when switching shells. I now have the following aliases: alias swshell='[[ $parameters[FPATH] == *export* ]] && typeset +x FPATH ; ' alias xportfpath='[[ $parameters[FPATH] == *export* ]] || typeset -x FPATH' Solved. Sorry for the noise. Thanks for you response, Jim --00000000000072b4c305ea30c911 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Oct 3, 2022 at 11:37 PM Jun T <= ;takimoto-j@kba.biglobe.ne.= jp> wrote:

Sorry, if FPATH is exported then it is inherited by the child
zsh even if it is started with option -f. So the above will not work.

You can check whether FPATH is exported of not by
If it shows 'export ...' then it is exported. You can 'un-expor= t' it

Sorry, as soon as I saw "= ;if FPATH is exported"=C2=A0 I figured out what was happening.

My .zshrc file makes sure FPATH is exported.=C2=A0 This i= s because some scripts/functions I
wrote failed if FPATH wasn'= ;t exported. So, I export it all the time. I didn't consider what
=
this would do when switching shells.

I now ha= ve the following aliases:

=C2=A0 alias swshell= =3D'[[ $parameters[FPATH] =3D=3D *export* ]] && typeset +x FPAT= H ; '
=C2=A0 alias xportfpath=3D'[[ $parameters[FPATH] = =3D=3D *export* ]] || typeset -x FPATH'

So= lved.=C2=A0 Sorry for the noise.

Thanks for you re= sponse,

Jim
--00000000000072b4c305ea30c911--