(ert-deftest esh-var-test/alias/function ()
"Test using a variable alias defined as a function."
- (with-temp-eshell
- (push `("ALIAS" ,(lambda () "value") nil t) eshell-variable-aliases-list)
- (eshell-match-command-output "echo $ALIAS" "value\n")
- (eshell-match-command-output "set ALIAS hello"
- "Variable `ALIAS' is not settable\n"
- nil t)))
+ (let ((text-quoting-style 'grave))
+ (with-temp-eshell
+ (push `("ALIAS" ,(lambda () "value") nil t) eshell-variable-aliases-list)
+ (eshell-match-command-output "echo $ALIAS" "value\n")
+ (eshell-match-command-output "set ALIAS hello"
+ "Variable `ALIAS' is not settable\n"
+ nil t))))
(ert-deftest esh-var-test/alias/function-pair ()
"Test using a variable alias defined as a pair of getter/setter functions."
This should get the value bound to the symbol, but fail to set
it, since the setter is nil."
(with-temp-eshell
- (let ((eshell-test-value "value"))
+ (let ((eshell-test-value "value")
+ (text-quoting-style 'grave))
(push '("ALIAS" (eshell-test-value . nil)) eshell-variable-aliases-list)
(eshell-match-command-output "echo $ALIAS" "value\n")
(eshell-match-command-output "set ALIAS hello"
- "Variable `ALIAS' is not settable\n"
- nil t))))
+ "Variable `ALIAS' is not settable\n"
+ nil t))))
(ert-deftest esh-var-test/alias/export ()
"Test that `export' properly sets variable aliases."