From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13878 invoked by alias); 9 Jun 2016 18:34:03 -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: X-Seq: 21636 Received: (qmail 12593 invoked from network); 9 Jun 2016 18:34:02 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=1T0He5DK/3/EoqRzMl56i1GHkst8nynOsXCGSJBulvM=; b=Xc+aBnzw77pg5qJNMuwmPnwvlV7nsM2pCME5vP3M4BbbYF9WDgbJzIBCI41rbQPKvB 4/kPSQ+AkN30yKNn+iqdeQlUJSUz5coZSpDdafSadB4VEldHweyOxbQPhrm/8UzBBzu/ dRaMgK2zlG6lBApyKv2AoOzqPZyiv1lUaDrqMKP1X0pA++oEjQc0R1j0UIoMgU5PF25P mOyYKrXmTZlYeZPwFHz0qn9f0pjJ9bJEremtfUs+pLjSKQTE3pBcuaFyfh0r1AH3t2fe lBpwEBJMUQ+FokkYY+VHboTuFjqeekKX4mgvro5dHZHOVR0zxwOnFOnP38GI9bbU4MNj ctxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=1T0He5DK/3/EoqRzMl56i1GHkst8nynOsXCGSJBulvM=; b=HnhvCBpRRJMG/rI4ioZQX1Dlo5RzA8+P61vLb69m98DBtq0R46Cu0VHyc1L2In531t XsmN7pI1+dN/VwOtmh41VVt9Z2/OkTNDMACTWQOVmUIjDgD08y7KfqmjGzMc9KE8vJFG 4ekX4uShRM6L8J/1u+5AfOsx/rH2euLk2MtsF35A2h2VYEUQkYBNJIBtx99ki76n3LcA Mhd+rT14LwR2+TetwJnuURU8zVtgIgeZr4y7BYoaAz2Bp/PkFn77gwIP4kftimbJKSYd 7Q5cMOWUi9dryxMmhA68ulmfIx5R41oBZzvMSkjW1o3k+k6guO3CnJahQcwVHQT9nqSh Z2kg== X-Gm-Message-State: ALyK8tKEw0FX2bQaNOzQWgvdzETcRa31dnQQ1N6ul/wvokjOpu7T4wCIsaVRxwabU5vT9AlFOFWnFu++LxeDAA== X-Received: by 10.200.34.206 with SMTP id g14mr11736666qta.56.1465497238880; Thu, 09 Jun 2016 11:33:58 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Sebastian Gniazdowski Date: Thu, 9 Jun 2016 20:33:39 +0200 Message-ID: Subject: Re: Can $_ substitute $0 when nofunctionargzero To: Zsh Users Content-Type: text/plain; charset=UTF-8 Hello, I read through discussion on ZSH_SCRIPT and ZSH_ARGZERO. Could there be one more parameter added? Basically, it's hard to make a software package without knowing where sourced file is located. A good example is zsh-syntax-highlighting. It needs functionargzero to be able to do source $0:h/highlighters/main/main-highlighter.zsh and other sources. An alternative is a variable, which is $ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR in this case. This is for emulate sh and ksh, where functionargzero is unset. Would we expect that some day software packages for shells with ksh emulation will be created? It would be interesting I think. Best regards, Sebastian Gniazdowski