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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30897 invoked from network); 20 Nov 2022 22:32:57 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Nov 2022 22:32:57 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668983577; b=Q1Ta3/OtNYo588BJUqQkOLcXDiroDCMUGCPxMwkfi145Cg5yPwg7YjvMMderPQrjlWnnekyCbn LJwt11HP1getAmcDwuOKHcoXy2EJAhhs8pMJf5uIE9ukvP8aqq0xFSw5n9YmHRAsC4VAWEhQ67 2IZ1hbFe65tLpBO5JOypfrGqTvdiKWM1BGJpRDSPIfnWyOt+ZsoXV1OUxGxgETL2HrC1IFczey hRvaePZX/1s8Uoi989ySuVgFHGhEEKmJZ2085hprlkGIt9azKv/isnMO69ZJ/9sa7XTC8rj1kN LwP9RlGryy0gmBnIabYncbqhYd6Wjws/21NbaM3YzWVxTQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f41.google.com) smtp.remote-ip=209.85.208.41; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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=1668983577; bh=l8a/zu3xeX5AsUwn3DOXeIMdXjfC0GY19KeYxvTMabo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=eo+dMBjn5SpDITXbU7F9IXrqrFsiiK4TDjVP/waTeSMkb38Y1D/xzpueZur0/VfXFJL//8El2s OHo3EmbhR5DkzHHvBDLGE+FD3Y+kQhpph253sgXTStpSUoAhMCzfJICYmMLsnNwvinxAZRY0uj 9ub3QtE76jpEU0gewir7xQYXliK+o8Jybfoight+WmnvVx4SvGwzq12bq0XZ1cKThCfWfzR5YZ x20QeiHNr358igpFNWmhGpMPbLcqRaLC1gG3YJqDEyA4CXX+cGKGK1GwRrxN+FicElgK7C6ICY xKsx0VgCxDTzDPg2DKgGvkclF2CBbQY5X/Pj82kX2DNwDQ==; 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:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=F2pF92ygTiFT1l9apfnuiHzdJW/DnsAUPzERnY3HvjQ=; b=L7sIhw3DWopj1Skwbxg3exmC/J N8sTwcybsR0/7eUkVNMe/6oGbYAXkDVn3QnxfP5QLtVDG4R9pEBxnsVg3Fb5H9cJmWdTcfX8fLESu f1f4g4ErxwaPZzaW9ej7ohLS9RwT+gcvYzM7gULQk8LrG998XI9badfj7+l8RYdgHqrnBLfJvMKFP U+Ji7yyTy4qz3c+ZeM9NrEgQxP1MlEFdiMsq1uqiQ9kYOD1XnK8HcTz6CauygJ8UIyKDxgwgWswXA PhnpLG3pGpdz2VmrYRdz2lgI4PfBqHZijHJaS2pKrnybRzux6Lcya81RZ+6gScz5Pvf5O/Z91YsEd +bJstvBg==; Received: by zero.zsh.org with local id 1owsrw-000DSO-9g; Sun, 20 Nov 2022 22:32:56 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f41.google.com) smtp.remote-ip=209.85.208.41; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f41.google.com ([209.85.208.41]:39745) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1owsrA-000Clx-PW; Sun, 20 Nov 2022 22:32:10 +0000 Received: by mail-ed1-f41.google.com with SMTP id f7so13887192edc.6 for ; Sun, 20 Nov 2022 14:32:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=F2pF92ygTiFT1l9apfnuiHzdJW/DnsAUPzERnY3HvjQ=; b=oVnN27DaC3A7bVcVQGQbnZj3lko94ZxuXOwvn5PPFhfCSFQzc+ZK3fnIuN8BiJuAV3 8tDI0KwQdsuHGFiLE+ToA4aaJsieZSwp34qwaG64DspsIfTvapcgDntOXpxJYNKNp2YT jBJLJuco+yzRyFz8KIqTzcmV7mOlCbhJUvcqTqEqveJMOOL/GBdrojgRru9JJLRS0tVA eX/Ya/FzS9BtGqK7siApRLc+RSYzKaJpsryE93ab8gJN/t6CAoo9J6h6Cn9QbD6ZWmqh Q4tOSBTYYxNitOUMsaThn0dm7JIuxBe1vqLxSoRELKJDJDdB55iMrNA1j+NZ4oanqMQS QJ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=F2pF92ygTiFT1l9apfnuiHzdJW/DnsAUPzERnY3HvjQ=; b=vPmMCI1QUcrGRfrmPhoRKdN+HXHM3veQHuP1syT+s9p3GxfU+0SJO3UmWioWmtbrjH D6CEdE4lRN//fAeEQiQKFgti6nLnl5BObQvvXdVQyO6oXWSZEAqg2wXQ5RobYkUPATdI aIUCNmKtK1oNxIzTAsl8zq8qoEC3bh4/K9Ec/URCnFyBzSEey3nK3b8PFeJKJt9S1tFB hottfn8qcqa+exOns0b0NXs5vVKsYu2wJbHgqrM2mNlUE9QYougme07Md1p/wkfgIAOu d4O5ExwVhEom3gz+Gh0Ae2JlFQInFFv0DIInZjvqwf/ATqfPRFwCUA2brJUJXkB6gkCP TnzA== X-Gm-Message-State: ANoB5pkYIBW0B20I+6oafcB4GGvI8lbeA+sAd5pfvCidHUKBVwJ4Jqn/ ohpxY2HM/D5Bm6SGgb8/81uI5MVUj6nAAGycoQ4w3w== X-Google-Smtp-Source: AA0mqf6P4qS4fufwQBlRJt02cjQl3a4k172WBowkYS9UI34de3THPDHSjwL3K22saBtGoKvm8MDeUbO0rZScgd1+imc= X-Received: by 2002:a05:6402:4286:b0:458:7489:34ea with SMTP id g6-20020a056402428600b00458748934eamr7407edc.264.1668983528169; Sun, 20 Nov 2022 14:32:08 -0800 (PST) MIME-Version: 1.0 References: <20221119164852.hwujmufa6hn5lotr@chazelas.org> <352823cc-954a-fa79-d830-d69d593b1c02@eastlink.ca> <3fa3f7ff-1733-4730-a62f-dd0e138c3b72@app.fastmail.com> <20221120085519.szudhyg5ewrw3b4o@chazelas.org> <20221120150848.74di3mpjwnfcul34@chazelas.org> <20221120201659.na4ypuivspeoowhu@chazelas.org> In-Reply-To: <20221120201659.na4ypuivspeoowhu@chazelas.org> From: Bart Schaefer Date: Sun, 20 Nov 2022 14:31:55 -0800 Message-ID: Subject: Re: why is eval needed? To: Ray Andrews , zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28424 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sun, Nov 20, 2022 at 12:17 PM Stephane Chazelas wrote: > > No, you have it completely backwards. And I think at the heart > of your misunderstanding there is the misconception that you > pass a "command string" to an executable. This misconception may be an effect of Ray's background with DOS/Windows command interpreters. In that world, each command is responsible both for parsing its "arguments" and for interpreting them. There was (is, I suppose) a standard DLL to support the parsing part, and a lot of commands used it, but it was still down to the command itself to call that DLL. In the Unix-based world, it's expected that the shell will do the parsing and the command only has to do the interpreting, so there are a lot more rules about the structure of the command line.