[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#73650: 31.0.50; [PATCH] Improve correctness of Eshell conditional fo
From: |
Jim Porter |
Subject: |
bug#73650: 31.0.50; [PATCH] Improve correctness of Eshell conditional forms and allow if/else chaining |
Date: |
Sat, 5 Oct 2024 18:34:24 -0700 |
These patches improve a few inconsistencies in how Eshell conditionals
work, especially when using Lisp forms inside of the command-form of
"if". For example, before this patch, the following command outputs
nothing at all:
if (zerop 0) (identity \"yes\") (identity \"no\")
With the patches, it now correctly outputs "yes".
I also added the ability to use the "else" keyword so that you can chain
together if/else blocks like so:
if {[ -f file.txt ]} {
echo found file
} else if {[ -f alternate.txt ]} {
echo found alternate
} else {
echo not found!
}
0001-Simplify-creation-of-Eshell-command-forms.patch
Description: Text document
0002-Improve-correctness-of-Eshell-sub-forms.patch
Description: Text document
0003-Add-support-for-chaining-conditionals-in-Eshell.patch
Description: Text document
- bug#73650: 31.0.50; [PATCH] Improve correctness of Eshell conditional forms and allow if/else chaining,
Jim Porter <=