From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2900 invoked by alias); 13 Jun 2018 07:26:53 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23476 Received: (qmail 8415 invoked by uid 1010); 13 Jun 2018 07:26:53 -0000 X-Qmail-Scanner-Diagnostics: from mail-io0-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.223.170):SA:0(-1.9/5.0):. Processed in 1.95129 secs); 13 Jun 2018 07:26:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_PASS,T_DKIMWL_WL_MED,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lu90QuqsUoB1+kVq8soUXDuOmrx1sDkb3E8n0CbhXsg=; b=JYe0p/smuQghSn3lUOfwGoJKYeHWsPR/Goq9GuAIP8bWblNxh5n0YKVqkWsGM0GHp9 J9ge+vE4EH+UQGje3x2vplUdGmmsNDoSfasTEFZ5BKXzC70GoVeSV0NsGC/UC86AdaNK ImbS8SS5mbkxWBBhOeGfHhoa99PcGQ/2IMiAHiTK/BVoLBjbIuBRQ2AejdMohvRL4gt5 Jka0i3iKzwetlXr8KosvnLd8CnVri5vjH0mHJyXehAFQmQR/uKRw/EP1SmRDpADHlmMz lUV5/L5rwuiyFp/rZaqIQwXEIPvl7ZobJelBEPgnE5F1DfvDeyktjGtGSx5lZlknkNvc HeVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lu90QuqsUoB1+kVq8soUXDuOmrx1sDkb3E8n0CbhXsg=; b=XeuoYUROktYv3ZlEd62e122K9jEvxXtGvzSdZCYXRlRjcVldk66lzQKnl5ToxQaHki P8zE5guuxfzH0A/dP53eI3gDHIJHylGCgHqrRz6nwjsy8PrJK6sclyP988kIuq5AyaSS caoKdemBkc6BZZMHJ02GyX7AsYPUuyDJ0dg1//etC+nSZay5gWDCgVb6CZ6CEm0b6eeG FnKEgbauPqeQvqyWCx41mQDnM8nnexCX8qgrYwgfrQkHtLqvlgYUSZu2M1E5hitBhzAu 3mB0ovPZ5O4Danb9EoXZUQL0M5OJNvQHDNF/gEr/W52P3lE7+v0CEwrr4lW/wdzI6TaG Sl9g== X-Gm-Message-State: APt69E0cBC316mE0gK//4lViKrsF7jknkjsOg9loqJjCzrtYksGIn3mn Yv1FcGjDuopAOM1FGRgtIPW7ng== X-Google-Smtp-Source: ADUXVKIiAbKi3otjBYhz77P4R2C8L4UQ41k6aJ0c1IlvBPEGLoDf0CWWUedwjIVoF53V5D9zH5ZBpQ== X-Received: by 2002:a6b:b791:: with SMTP id h139-v6mr3569526iof.201.1528874809132; Wed, 13 Jun 2018 00:26:49 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Anyone familiar with auto-fu.zsh project? From: dana In-Reply-To: Date: Wed, 13 Jun 2018 02:26:47 -0500 Cc: Zsh Users Content-Transfer-Encoding: quoted-printable Message-Id: <5DD9F0D4-8348-4707-AE6B-1D47AE58FD2D@dana.is> References: <20180612113257eucas1p2342f735bcea27bb1009aee1b23c682f0~3ZmPbMrh61839118391eucas1p2G@eucas1p2.samsung.com> To: Eric Freese X-Mailer: Apple Mail (2.3273) On 12 Jun 2018, at 23:09, Eric Freese wrote: >Is it possible to get the current subshell's pid without having to load = the >zsh/system module ($sysparams param)? Bash seems to have the $BASHPID >variable. Is there anything like that in zsh core? I asked about that as well once and sysparams was the only suggestion i = got. On 12 Jun 2018, at 23:09, Eric Freese wrote: >Or, alternatively, is it reasonable to assume that everyone will be = able to >load the zsh/system module? Background here is that I had a user send a >pull request to zsh-autosuggestions requesting we don't depend on = zsh/zpty >module since some people may not have it installed, so I'm trying to >minimize dependencies on non-core modules. I'm pretty sure that was me. And no, you can't assume that users will = have zsh/system. Which modules are available to zsh is up to the packager, = but these are the ones that are linked by default with --disable-dynamic: zsh/compctl zsh/complete zsh/complist zsh/computil zsh/datetime zsh/main zsh/parameter zsh/rlimits zsh/sched zsh/termcap zsh/zle zsh/zleparameter zsh/zutil So i think those are essentially the 'core' modules. You can probably = include zsh/langinfo and zsh/terminfo in most cases too. Those are the ones i = had on the system that inspired that PR, anyway. dana