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 /doc/misc | |
| 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 'doc/misc')
| -rw-r--r-- | doc/misc/eshell.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi index 6e92d598387..c6376882542 100644 --- a/doc/misc/eshell.texi +++ b/doc/misc/eshell.texi | |||
| @@ -993,6 +993,13 @@ variable is connection-aware, so when the current directory is remote, | |||
| 993 | its value will be @acronym{UID} for the user associated with that | 993 | its value will be @acronym{UID} for the user associated with that |
| 994 | remote connection. | 994 | remote connection. |
| 995 | 995 | ||
| 996 | @vindex $GID | ||
| 997 | @item $GID | ||
| 998 | This returns the effective @acronym{GID} for the current user. Like | ||
| 999 | @code{$UID}, this variable is connection-aware, so when the current | ||
| 1000 | directory is remote, its value will be @acronym{GID} for the user | ||
| 1001 | associated with that remote connection. | ||
| 1002 | |||
| 996 | @vindex $_ | 1003 | @vindex $_ |
| 997 | @item $_ | 1004 | @item $_ |
| 998 | This refers to the last argument of the last command. With a | 1005 | This refers to the last argument of the last command. With a |