From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: eshell-batch-file Date: Sun, 9 Jun 2024 11:55:22 -0700 Message-ID: <6a0e51ee-f4a2-c668-fcc7-eb83954539d5@gmail.com> References: <86cyoqbq7m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29299"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 09 20:56:07 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sGNi3-0007UB-5b for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Jun 2024 20:56:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGNhT-00061B-Sj; Sun, 09 Jun 2024 14:55:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGNhQ-00060d-Pl for emacs-devel@gnu.org; Sun, 09 Jun 2024 14:55:29 -0400 Original-Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGNhP-00053m-8N; Sun, 09 Jun 2024 14:55:28 -0400 Original-Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-681bc7f50d0so3200670a12.0; Sun, 09 Jun 2024 11:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717959324; x=1718564124; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=aZ3Bf2n7+aYK9C/+wuK3KXMxwp/SWhAMCPgCTgHII4c=; b=OyV+pRgYSWipz0Kyx9EEXdw11I3q2F7pdAlFXypUm4fRbD6vndjvbYu86deGmmODnJ IzHCGoJ7n9sDDb+Amem+m0PhSjuJKSpeymteLPySk0LD3GvnNMdMnb1D4nJTxq+3j6LY 5iGSdbknxRtdmEB2xVxoET66SyoDsGk87J7hl0t3W3qbufC2ekh5l1vUjmMDiEufJVwG MQKFWq1Qsoe/k1agsg9JKdyXVvYAAYN0A5R6D+lrkckWGjpcdq1Z5hey8wszi3bC0xWr yCkbdLPuM5uaNvnwnmQfRY1B8JmANtZ+ybVrHr4TwY4A5u2/xbSC78zRpGiUV/E8xK59 UFPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717959324; x=1718564124; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aZ3Bf2n7+aYK9C/+wuK3KXMxwp/SWhAMCPgCTgHII4c=; b=jonbfQ1vheViVaB5z1t+Ra3A7iV6vDeqggZ5T+i1P3Ipx4lGgNntLe/xLw7cO0MOA6 ZUFDm3ciCs/fYo9DzH2+kfgoNNjsECXaoi5+DPnlbwl7cYK5ch95Xduhx2/XYRKfpKrI aQZmyRqwevzpj6oVUG2xaH/PnG/vxMiK07vkXYIIfak02AiFIPFz8QXpNAaDrJAk4pAr IcVzJJz7uc2w6Pgkg2QKdH5OQgc7NEjd4Wt7xhgDzimzeguWCGu+NSIK2zBC8FXELQGd jEXXyh0SSQwSyheuNr3WFWO24rNWoGoczg5j7jnLeHw0eWx1EG9Fg3MP/F8lpkZsgWmy AeLg== X-Gm-Message-State: AOJu0Yxu6M+7iIPD9XStJzEQjTwXjmSx80fFvrEFPrR6f7iRkkwRjtoI Mu0uW5/PyD25Ymfpze+t+QOyKe1Wb3HaORWuO7fflL9uE7tXVdoCHKlC8g== X-Google-Smtp-Source: AGHT+IEoe8+MiindcMxRA6A+fUtEViCsD77RzK0pXpYuh0aA0FxuUS/WbgWYlGdphOHzRQDKNV/hDg== X-Received: by 2002:a17:903:453:b0:1f6:f318:71d7 with SMTP id d9443c01a7336-1f6f3187471mr39581505ad.19.1717959324449; Sun, 09 Jun 2024 11:55:24 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-1f6bd7ed6bdsm69192965ad.248.2024.06.09.11.55.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Jun 2024 11:55:24 -0700 (PDT) Content-Language: en-US In-Reply-To: <86cyoqbq7m.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=jporterbugs@gmail.com; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319937 Archived-At: On 6/8/2024 11:11 PM, Eli Zaretskii wrote: > Is eshell-batch-file supposed to work on MS-Windows? Its > implementation seems to be full of Unix-isms, so maybe it isn't > supposed to work? If it is supposed to work, can you describe its > internal workings, so I could take a look? I think it should work on MS-Windows, although MS-Windows users would need to configure things differently. (Users should be able to set up a file association handler for ".esh" files that calls Emacs with with the right arguments.) If you do the following on the command line, do things work? echo "echo hello" > script.esh emacs --batch -f eshell-batch-file script.esh (It should just print "hello" and nothing else.) > The relevant test in the > test suite currently fails on MS-Windows, but I'm uncertain whether > it's because it expects a file with hash-bang to be executable by the > shell or for some more fundamental reasons. Sorry about that. That test should probably be disabled on MS-Windows as you've done. I've added a new test though that should hopefully pass on all systems, including MS-Windows.