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 /lisp | |
| 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 'lisp')
| -rw-r--r-- | lisp/eshell/esh-var.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el index 7dcaff1e24f..c7c0a21d2a9 100644 --- a/lisp/eshell/esh-var.el +++ b/lisp/eshell/esh-var.el | |||
| @@ -163,6 +163,7 @@ if they are quoted with a backslash." | |||
| 163 | ("LINES" ,(lambda () (window-body-height nil 'remap)) t t) | 163 | ("LINES" ,(lambda () (window-body-height nil 'remap)) t t) |
| 164 | ("INSIDE_EMACS" eshell-inside-emacs t) | 164 | ("INSIDE_EMACS" eshell-inside-emacs t) |
| 165 | ("UID" ,(lambda () (file-user-uid)) nil t) | 165 | ("UID" ,(lambda () (file-user-uid)) nil t) |
| 166 | ("GID" ,(lambda () (file-group-gid)) nil t) | ||
| 166 | 167 | ||
| 167 | ;; for esh-ext.el | 168 | ;; for esh-ext.el |
| 168 | ("PATH" (,(lambda () (string-join (eshell-get-path t) (path-separator))) | 169 | ("PATH" (,(lambda () (string-join (eshell-get-path t) (path-separator))) |