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=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI 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 9A5852126F for ; Tue, 2 Apr 2024 02:29:16 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1712017756; b=soPWoVA4q95CdNo2uMIT605HReOepfYco6loxU33sjptUsgfpdmzJb5YkvnHWsRLk6vRhF7fgi mpvxV+sIzjNpqH/+RPwbflCTybQz5RGeZXYH0Mo6H0bEhjFUib3CyVRngpztHJE6jaDfR9HA4l n1h0eabxhU/yyUYjPtQrJmer6o/OZHF/3Emcgq7lBR/ehefwQB6rPoRWS65tjOMZCyUzP1uhal +7xklye3B+hce/w0BSj7e73HPJuBlE4o/BiLbJr3B6QQOfooPu3A1hINUVaEHDnwLCqViHHV7G 0rJaldOcHa9at2+aKeiSbX6KaxVWsv+oqPrzh5iPIKUkaw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f48.google.com) smtp.remote-ip=209.85.167.48; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1712017756; bh=WANB31q4KRZBML08LFFUJKQiUeNtsoUPw2PI7jFtr9M=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=FzmyTWVdOsfIlpw6Om1eLHHG5sHwnMWfTfapC6hGvo+V3cxx+B70OpjY52TEd/E3U4CyEmJSr2 5L8tkT3vfyrONFeMXF8FG0cYU5Ob0PmJfyNETfI+xb534j4f8UP2rUTGlkPE7w0/IUG9Ov6aWa cdg9Jqdc8OeEhNyamEKLeeI7IBpp31LV0ak1lB4ZUvkVSj8k6eLA2VUpEfNMrm5bjfzB+XPYy/ DlfYI+BkF8o0nrqx+/yhL76HRxd/03fJM2V4Vi8HwZ8tyzNqCXIDGNwDwvL5FaKdsHGpVyVKV9 RY8Lhgp0mO8DzjKZIH4S4PZows6BKk9Vy5MqCi8mhYe/SA==; 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-Transfer-Encoding: Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=wi4rfXz2ldh2mjWxEH56HJf7G47te/asVc7xKGROKmQ=; b=Unp5qt15gjQz8foy01Z23aKz7F pwXbeFItTa+qAvlqAfPkKT8Vq2DJgoJIZCNTo6zzKWzmweghMGraWeacZWCJ4tQamAqz72+lfQt7T 1my8ISpoLHMNKLzmw2jJ2Cl3qSbgEuhm/fhoX5n3wFCQ3wHHy4H/PYjyPPvkjbjHx/MqWSNZm2eAQ ZwZ67KDYOAynAMX9fUOHo4JO49ze/uCP6ecKu87XAvlfTdcN3LyzH1yFyjvmtZMXx7F9NgTAtQdHo maou4F5BOKxKRgsdddWZTaJ1ipBJYjseN8dXv3gdcGC1lS0UpEc08OsB0s2sN6oX8G/QU4gdPcJmN cL5nqyrA==; Received: by zero.zsh.org with local id 1rrS1b-0009FA-LU; Tue, 02 Apr 2024 00:29:15 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f48.google.com) smtp.remote-ip=209.85.167.48; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-lf1-f48.google.com ([209.85.167.48]:44368) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rrS0y-0008un-Fz; Tue, 02 Apr 2024 00:28:38 +0000 Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-515c50dc2afso4960017e87.1 for ; Mon, 01 Apr 2024 17:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1712017715; x=1712622515; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wi4rfXz2ldh2mjWxEH56HJf7G47te/asVc7xKGROKmQ=; b=ao7CA5yx1tRk1vBFMgVoHekiOG4rcWBVZ9OrsWalNac8PixwqJQUlx3d56H8G5u9Cu pDwrxs+30b0VDqrK2zH4MBP4jTyQ/z5bB+Ah3ravkYkFJ+rCmf+p4ekD4hTUl3Vj8/Av tyeMy7ysK1yQLOqDvFIvEO1Zb+jcJaWSwxO0gqc7PvM1YRbKysBHzBzTEvUZbGvOAt7p 40lGy5EGeSYK/v1g6mCXij0IwWG0aMqdxn6rIyahi+2CYfRxky+31ZqIhxL6fCwaHo+w 7Sc0NgHGWes4asaGBR18lA5vWL+OYXsOYlRJtr6lhXYA4vq6ZIcYrIfB/veHi26l9MzP BjQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712017715; x=1712622515; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wi4rfXz2ldh2mjWxEH56HJf7G47te/asVc7xKGROKmQ=; b=kOHM9wol+gao9GwnFiNokGn857SLKkoVgumExwDoIFK9bql2BTkxWzk9SbOxWo8rfo f6mVNI7Zp8VthFylrDFbIx7m4pMoii3RN5prkdoZrVtqjqBZUBLmf5SYs1SMg5ZfmXcr GuKqrWwsXAL7NT3l5iy293mOZmGmIUAOgSkDtYFQGZJWZkQZg8tP9dEyJb6x3zAe6Oqo eTK9+VEiP+lbQo9j6gKY/6LG+wg3KbvXogakGhihNaKh/qb3wi7goee31cYgtkq8DtuA xtwPF3TWh+yr5XXn7HaTnF+PQ421k8KJYUY0m0GvKDGSNkl6dNy4vK6iG28Hm6mNTaPx kR0Q== X-Gm-Message-State: AOJu0Yw1ovwubAZn+lTXoGiMiJ0PdzrVSZ4a6+ofCNo+kDhOh30SArzu MPcyhAUCPPhZ9OrSd0Zi3am9lmovhW/Wn4XOd7yTQ6kNhhQPB97HhwBWcgbO24sYn8yZBIiGuA+ L8trNvumdC71j5FGmCKwlxHKVsWIKOCxBmMjErGGLWnb1hNzPXA== X-Google-Smtp-Source: AGHT+IFLxXB4F80xJHsgB0o0qEwttOLCjjb4nvWbjmWwlJrhtqtPNLRGEjRjUpgOD5T4H7Jv257gXODpeySQdLhRE/4= X-Received: by 2002:ac2:46f0:0:b0:513:dd23:7a02 with SMTP id q16-20020ac246f0000000b00513dd237a02mr6967552lfo.26.1712017715011; Mon, 01 Apr 2024 17:28:35 -0700 (PDT) MIME-Version: 1.0 References: <20240401201841.dpet5winsejmb3bn@chazelas.org> In-Reply-To: <20240401201841.dpet5winsejmb3bn@chazelas.org> From: Bart Schaefer Date: Mon, 1 Apr 2024 17:28:23 -0700 Message-ID: Subject: Re: Aliases that ignore "noaliases" To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52869 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: On Mon, Apr 1, 2024 at 1:18=E2=80=AFPM Stephane Chazelas wrote: > > TLDR, I think zsh should avoid having builtin aliases. In the cases I'm thinking of, it doesn't really have to behave like an alias in the sense of lex-time textual replacement. For builtins, we already have a number of them that invoke the same C function underneath, with different lists of allowed and default options handled by the "front end" for builtintab entries. Something similar for reserved words would go a long way. Sort of the way "zle -C" uses a builtin widget to define how a user-defined one should behave. The "suspend" example from ksh is not particularly apt here because I'm interested in defining syntax rather than (re-)implementing commands, so naming would have to be approached just as carefully as with any new reserved word.