diff options
| author | Jim Porter | 2023-07-07 23:18:33 -0700 |
|---|---|---|
| committer | Jim Porter | 2023-07-08 12:19:29 -0700 |
| commit | e074081af3de6bbdff330f6fa60355b3a86215bb (patch) | |
| tree | 5ae04f3f91038dc07914bccb920a481d0ebb11e5 /test | |
| parent | 8c5fef4eb301d878b9761ebf74f845895f014610 (diff) | |
| download | emacs-e074081af3de6bbdff330f6fa60355b3a86215bb.tar.gz emacs-e074081af3de6bbdff330f6fa60355b3a86215bb.zip | |
Add special '$GID' variable in Eshell
See bug#64529.
* lisp/eshell/esh-var.el (eshell-variable-aliases-list): Add '$GID'.
* test/lisp/eshell/esh-var-tests.el (esh-var-test/gid-var): New test.
* doc/misc/eshell.texi (Variables): Document '$GID'.
* etc/NEWS: Announce this change (and the previous change for '$UID').
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/eshell/esh-var-tests.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lisp/eshell/esh-var-tests.el b/test/lisp/eshell/esh-var-tests.el index 771bd5a419c..3e58fe749dd 100644 --- a/test/lisp/eshell/esh-var-tests.el +++ b/test/lisp/eshell/esh-var-tests.el | |||
| @@ -829,6 +829,10 @@ it, since the setter is nil." | |||
| 829 | "Test that $UID is equivalent to (user-uid) for local directories." | 829 | "Test that $UID is equivalent to (user-uid) for local directories." |
| 830 | (eshell-command-result-equal "echo $UID" (user-uid))) | 830 | (eshell-command-result-equal "echo $UID" (user-uid))) |
| 831 | 831 | ||
| 832 | (ert-deftest esh-var-test/gid-var () | ||
| 833 | "Test that $GID is equivalent to (group-gid) for local directories." | ||
| 834 | (eshell-command-result-equal "echo $GID" (group-gid))) | ||
| 835 | |||
| 832 | (ert-deftest esh-var-test/last-status-var-lisp-command () | 836 | (ert-deftest esh-var-test/last-status-var-lisp-command () |
| 833 | "Test using the \"last exit status\" ($?) variable with a Lisp command." | 837 | "Test using the \"last exit status\" ($?) variable with a Lisp command." |
| 834 | (with-temp-eshell | 838 | (with-temp-eshell |