aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorJim Porter2024-02-08 11:31:17 -0800
committerJim Porter2024-02-09 17:42:13 -0800
commitb5b80de49c5a37778945d7a0234090b09acc104f (patch)
treeb1e14074b97b93732f2993e0875aa91557d0985b /doc/misc
parent7a13e705b1aead8f527dfa5407d9f87301b1f252 (diff)
downloademacs-b5b80de49c5a37778945d7a0234090b09acc104f.tar.gz
emacs-b5b80de49c5a37778945d7a0234090b09acc104f.zip
In Eshell manual, put command index anchors above the item
This makes sure that when navigating to the command's documentation from the index, it shows the item heading (which lists the supported arguments). * doc/misc/eshell.texi (List of Built-ins, Tramp extensions) (Extra built-in commands): Adjust placement of '@cmindex'.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/eshell.texi134
1 files changed, 67 insertions, 67 deletions
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi
index 9e5eea6cb61..3ff8e55ed03 100644
--- a/doc/misc/eshell.texi
+++ b/doc/misc/eshell.texi
@@ -490,16 +490,16 @@ commands}.
490 490
491@table @code 491@table @code
492 492
493@item . @var{file} [@var{argument}]@dots{}
494@cmindex . 493@cmindex .
494@item . @var{file} [@var{argument}]@dots{}
495Source an Eshell script named @var{file} in the current environment, 495Source an Eshell script named @var{file} in the current environment,
496passing any @var{arguments} to the script (@pxref{Scripts}). This is 496passing any @var{arguments} to the script (@pxref{Scripts}). This is
497not to be confused with the command @command{source}, which sources a 497not to be confused with the command @command{source}, which sources a
498file in a subshell environment. 498file in a subshell environment.
499 499
500@cmindex addpath
500@item addpath 501@item addpath
501@itemx addpath [-b] @var{directory}@dots{} 502@itemx addpath [-b] @var{directory}@dots{}
502@cmindex addpath
503Adds each specified @var{directory} to the @code{$PATH} environment 503Adds each specified @var{directory} to the @code{$PATH} environment
504variable. By default, this adds the directories to the end of 504variable. By default, this adds the directories to the end of
505@code{$PATH}, in the order they were passed on the command line; by 505@code{$PATH}, in the order they were passed on the command line; by
@@ -509,30 +509,30 @@ directories to the beginning.
509With no directories, print the list of directories currently stored in 509With no directories, print the list of directories currently stored in
510@code{$PATH}. 510@code{$PATH}.
511 511
512@cmindex alias
512@item alias 513@item alias
513@itemx alias @var{name} [@var{command}] 514@itemx alias @var{name} [@var{command}]
514@cmindex alias
515Define an alias named @var{name} and expanding to @var{command}, 515Define an alias named @var{name} and expanding to @var{command},
516adding it to the aliases file (@pxref{Aliases}). If @var{command} is 516adding it to the aliases file (@pxref{Aliases}). If @var{command} is
517omitted, delete the alias named @var{name}. With no arguments at all, 517omitted, delete the alias named @var{name}. With no arguments at all,
518list all the currently-defined aliases. 518list all the currently-defined aliases.
519 519
520@item basename @var{filename}
521@cmindex basename 520@cmindex basename
521@item basename @var{filename}
522Return @var{filename} without its directory. 522Return @var{filename} without its directory.
523 523
524@item cat @var{file}@dots{}
525@cmindex cat 524@cmindex cat
525@item cat @var{file}@dots{}
526Concatenate the contents of @var{file}s to standard output. If in a 526Concatenate the contents of @var{file}s to standard output. If in a
527pipeline, or if any of the files is not a regular file, directory, or 527pipeline, or if any of the files is not a regular file, directory, or
528symlink, then this command reverts to the system's definition of 528symlink, then this command reverts to the system's definition of
529@command{cat}. 529@command{cat}.
530 530
531@cmindex cd
531@item cd 532@item cd
532@itemx cd @var{directory} 533@itemx cd @var{directory}
533@itemx cd -[@var{n}] 534@itemx cd -[@var{n}]
534@itemx cd =[@var{regexp}] 535@itemx cd =[@var{regexp}]
535@cmindex cd
536Change the current working directory. This command can take several 536Change the current working directory. This command can take several
537forms: 537forms:
538 538
@@ -567,20 +567,20 @@ will report the directory it changes to. If
567@code{eshell-list-files-after-cd} is non-@code{nil}, then @command{ls} 567@code{eshell-list-files-after-cd} is non-@code{nil}, then @command{ls}
568is called with any remaining arguments after changing directories. 568is called with any remaining arguments after changing directories.
569 569
570@item clear [@var{scrollback}]
571@cmindex clear 570@cmindex clear
571@item clear [@var{scrollback}]
572Scrolls the contents of the Eshell window out of sight, leaving a 572Scrolls the contents of the Eshell window out of sight, leaving a
573blank window. If @var{scrollback} is non-@code{nil}, the scrollback 573blank window. If @var{scrollback} is non-@code{nil}, the scrollback
574contents are cleared instead, as with @command{clear-scrollback}. 574contents are cleared instead, as with @command{clear-scrollback}.
575 575
576@item clear-scrollback
577@cmindex clear-scrollback 576@cmindex clear-scrollback
577@item clear-scrollback
578Clear the scrollback contents of the Eshell window. Unlike the 578Clear the scrollback contents of the Eshell window. Unlike the
579command @command{clear}, this command deletes content in the Eshell 579command @command{clear}, this command deletes content in the Eshell
580buffer. 580buffer.
581 581
582@item compile [-p | -i] [-m @var{mode-name}] @var{command}@dots{}
583@cmindex compile 582@cmindex compile
583@item compile [-p | -i] [-m @var{mode-name}] @var{command}@dots{}
584Run an external command, sending its output to a compilation buffer if 584Run an external command, sending its output to a compilation buffer if
585the command would output to the screen and is not part of a pipeline 585the command would output to the screen and is not part of a pipeline
586or subcommand. 586or subcommand.
@@ -598,9 +598,9 @@ you have a grep-like command on your system, you might define an alias
598for it like so: @samp{alias mygrep 'compile --mode=grep-mode -- mygrep 598for it like so: @samp{alias mygrep 'compile --mode=grep-mode -- mygrep
599$*'}. 599$*'}.
600 600
601@cmindex cp
601@item cp [@var{option}@dots{}] @var{source} @var{dest} 602@item cp [@var{option}@dots{}] @var{source} @var{dest}
602@item cp [@var{option}@dots{}] @var{source}@dots{} @var{directory} 603@item cp [@var{option}@dots{}] @var{source}@dots{} @var{directory}
603@cmindex cp
604Copy the file @var{source} to @var{dest} or @var{source} into 604Copy the file @var{source} to @var{dest} or @var{source} into
605@var{directory}. 605@var{directory}.
606 606
@@ -644,14 +644,14 @@ Print the name of each file before copying it.
644 644
645@end table 645@end table
646 646
647@item date [@var{specified-time} [@var{zone}]]
648@cmindex date 647@cmindex date
648@item date [@var{specified-time} [@var{zone}]]
649Print the current local time as a human-readable string. This command 649Print the current local time as a human-readable string. This command
650is an alias to the Emacs Lisp function @code{current-time-string} 650is an alias to the Emacs Lisp function @code{current-time-string}
651(@pxref{Time of Day,,, elisp, GNU Emacs Lisp Reference Manual}). 651(@pxref{Time of Day,,, elisp, GNU Emacs Lisp Reference Manual}).
652 652
653@item diff [@var{option}]@dots{} @var{old} @var{new}
654@cmindex diff 653@cmindex diff
654@item diff [@var{option}]@dots{} @var{old} @var{new}
655Compare the files @var{old} and @var{new} using Emacs's internal 655Compare the files @var{old} and @var{new} using Emacs's internal
656@code{diff} (not to be confused with @code{ediff}). @xref{Comparing 656@code{diff} (not to be confused with @code{ediff}). @xref{Comparing
657Files, , , emacs, The GNU Emacs Manual}. 657Files, , , emacs, The GNU Emacs Manual}.
@@ -661,18 +661,18 @@ If @code{eshell-plain-diff-behavior} is non-@code{nil}, then this
661command does not use Emacs's internal @code{diff}. This is the same 661command does not use Emacs's internal @code{diff}. This is the same
662as using @samp{alias diff '*diff $@@*'}. 662as using @samp{alias diff '*diff $@@*'}.
663 663
664@item dirname @var{filename}
665@cmindex dirname 664@cmindex dirname
665@item dirname @var{filename}
666Return the directory component of @var{filename}. 666Return the directory component of @var{filename}.
667 667
668@item dirs
669@cmindex dirs 668@cmindex dirs
669@item dirs
670Prints the directory stack. Directories can be added or removed from 670Prints the directory stack. Directories can be added or removed from
671the stack using the commands @command{pushd} and @command{popd}, 671the stack using the commands @command{pushd} and @command{popd},
672respectively. 672respectively.
673 673
674@item du [@var{option}]@dots{} @var{file}@dots{}
675@cmindex du 674@cmindex du
675@item du [@var{option}]@dots{} @var{file}@dots{}
676Summarize disk usage for each file, recursing into directories. 676Summarize disk usage for each file, recursing into directories.
677 677
678@command{du} accepts the following options: 678@command{du} accepts the following options:
@@ -720,8 +720,8 @@ Skip any directories that reside on different filesystems.
720 720
721@end table 721@end table
722 722
723@item echo [-n | -N] [@var{arg}]@dots{}
724@cmindex echo 723@cmindex echo
724@item echo [-n | -N] [@var{arg}]@dots{}
725Prints the value of each @var{arg}. By default, this prints in a 725Prints the value of each @var{arg}. By default, this prints in a
726Lisp-friendly fashion (so that the value is useful to a Lisp command 726Lisp-friendly fashion (so that the value is useful to a Lisp command
727using the result of @command{echo} as an argument). If a single 727using the result of @command{echo} as an argument). If a single
@@ -739,16 +739,16 @@ using @code{-n} to disable the trailing newline (the default behavior)
739or @code{-N} to enable it (the default when 739or @code{-N} to enable it (the default when
740@code{eshell-plain-echo-behavior} is non-@code{nil}). 740@code{eshell-plain-echo-behavior} is non-@code{nil}).
741 741
742@item env [@var{var}=@var{value}]@dots{} [@var{command}]@dots{}
743@cmindex env 742@cmindex env
743@item env [@var{var}=@var{value}]@dots{} [@var{command}]@dots{}
744With no arguments, print the current environment variables. If you 744With no arguments, print the current environment variables. If you
745pass arguments to this command, then @command{env} will execute the 745pass arguments to this command, then @command{env} will execute the
746arguments as a command. If you pass any initial arguments of the form 746arguments as a command. If you pass any initial arguments of the form
747@samp{@var{var}=@var{value}}, @command{env} will first set @var{var} 747@samp{@var{var}=@var{value}}, @command{env} will first set @var{var}
748to @var{value} before running the command. 748to @var{value} before running the command.
749 749
750@item eshell-debug [error | form | process]@dots{}
751@cmindex eshell-debug 750@cmindex eshell-debug
751@item eshell-debug [error | form | process]@dots{}
752Toggle debugging information for Eshell itself. You can pass this 752Toggle debugging information for Eshell itself. You can pass this
753command one or more of the following arguments: 753command one or more of the following arguments:
754 754
@@ -768,30 +768,30 @@ buffer @code{*eshell last cmd*}; or
768 768
769@end itemize 769@end itemize
770 770
771@item exit
772@cmindex exit 771@cmindex exit
772@item exit
773@vindex eshell-kill-on-exit 773@vindex eshell-kill-on-exit
774Exit Eshell and save the history. By default, this command kills the 774Exit Eshell and save the history. By default, this command kills the
775Eshell buffer, but if @code{eshell-kill-on-exit} is @code{nil}, then 775Eshell buffer, but if @code{eshell-kill-on-exit} is @code{nil}, then
776the buffer is merely buried instead. 776the buffer is merely buried instead.
777 777
778@item export [@var{name}=@var{value}]@dots{}
779@cmindex export 778@cmindex export
779@item export [@var{name}=@var{value}]@dots{}
780Set environment variables using input like Bash's @command{export}, as 780Set environment variables using input like Bash's @command{export}, as
781in @samp{export @var{var1}=@var{val1} @var{var2}=@var{val2} @dots{}}. 781in @samp{export @var{var1}=@var{val1} @var{var2}=@var{val2} @dots{}}.
782 782
783@item grep [@var{arg}]@dots{}
784@cmindex grep 783@cmindex grep
785@itemx agrep [@var{arg}]@dots{} 784@item grep [@var{arg}]@dots{}
786@cmindex agrep 785@cmindex agrep
787@itemx egrep [@var{arg}]@dots{} 786@itemx agrep [@var{arg}]@dots{}
788@cmindex egrep 787@cmindex egrep
789@itemx fgrep [@var{arg}]@dots{} 788@itemx egrep [@var{arg}]@dots{}
790@cmindex fgrep 789@cmindex fgrep
791@itemx rgrep [@var{arg}]@dots{} 790@itemx fgrep [@var{arg}]@dots{}
792@cmindex rgrep 791@cmindex rgrep
793@itemx glimpse [@var{arg}]@dots{} 792@itemx rgrep [@var{arg}]@dots{}
794@cmindex glimpse 793@cmindex glimpse
794@itemx glimpse [@var{arg}]@dots{}
795The @command{grep} commands are compatible with GNU @command{grep}, 795The @command{grep} commands are compatible with GNU @command{grep},
796but open a compilation buffer in @code{grep-mode} instead. 796but open a compilation buffer in @code{grep-mode} instead.
797@xref{Grep Searching, , , emacs, The GNU Emacs Manual}. 797@xref{Grep Searching, , , emacs, The GNU Emacs Manual}.
@@ -803,9 +803,9 @@ to Eshell's buffer. This is the same as using @samp{alias grep '*grep
803$@@*'}, though this setting applies to all of the built-in commands 803$@@*'}, though this setting applies to all of the built-in commands
804for which you would need to create a separate alias. 804for which you would need to create a separate alias.
805 805
806@cmindex history
806@item history [@var{n}] 807@item history [@var{n}]
807@itemx history [-arw] [@var{filename}] 808@itemx history [-arw] [@var{filename}]
808@cmindex history
809Prints Eshell's input history. With a numeric argument @var{n}, this 809Prints Eshell's input history. With a numeric argument @var{n}, this
810command prints the @var{n} most recent items in the history. 810command prints the @var{n} most recent items in the history.
811Alternately, you can specify the following options: 811Alternately, you can specify the following options:
@@ -824,8 +824,8 @@ Write the current history list to the history file.
824 824
825@end table 825@end table
826 826
827@item info [@var{manual} [@var{item}]@dots{}]
828@cmindex info 827@cmindex info
828@item info [@var{manual} [@var{item}]@dots{}]
829Browse the available Info documentation. With no arguments, browse 829Browse the available Info documentation. With no arguments, browse
830the top-level menu. Otherwise, show the manual for @var{manual}, 830the top-level menu. Otherwise, show the manual for @var{manual},
831selecting the menu entry for @var{item}. 831selecting the menu entry for @var{item}.
@@ -834,25 +834,25 @@ This command is the same as the external @command{info} command, but
834uses Emacs's internal Info reader. @xref{Misc Help, , , emacs, The 834uses Emacs's internal Info reader. @xref{Misc Help, , , emacs, The
835GNU Emacs Manual}. 835GNU Emacs Manual}.
836 836
837@item jobs
838@cmindex jobs 837@cmindex jobs
838@item jobs
839List subprocesses of the Emacs process, if any, using the function 839List subprocesses of the Emacs process, if any, using the function
840@code{list-processes}. 840@code{list-processes}.
841 841
842@item kill [-@var{signal}] [@var{pid} | @var{process}]
843@cmindex kill 842@cmindex kill
843@item kill [-@var{signal}] [@var{pid} | @var{process}]
844Kill processes. Takes a PID or a process object and an optional 844Kill processes. Takes a PID or a process object and an optional
845@var{signal} specifier which can either be a number or a signal name. 845@var{signal} specifier which can either be a number or a signal name.
846 846
847@item listify [@var{arg}]@dots{}
848@cmindex listify 847@cmindex listify
848@item listify [@var{arg}]@dots{}
849Return the arguments as a single list. With a single argument, return 849Return the arguments as a single list. With a single argument, return
850it as-is if it's already a list, or otherwise wrap it in a list. With 850it as-is if it's already a list, or otherwise wrap it in a list. With
851multiple arguments, return a list of all of them. 851multiple arguments, return a list of all of them.
852 852
853@cmindex ln
853@item ln [@var{option}]@dots{} @var{target} [@var{link-name}] 854@item ln [@var{option}]@dots{} @var{target} [@var{link-name}]
854@itemx ln [@var{option}]@dots{} @var{target}@dots{} @var{directory} 855@itemx ln [@var{option}]@dots{} @var{target}@dots{} @var{directory}
855@cmindex ln
856Create a link to the specified @var{target} named @var{link-name} or 856Create a link to the specified @var{target} named @var{link-name} or
857create links to multiple @var{targets} in @var{directory}. 857create links to multiple @var{targets} in @var{directory}.
858 858
@@ -886,8 +886,8 @@ Print the name of each file before linking it.
886 886
887@end table 887@end table
888 888
889@item locate @var{arg}@dots{}
890@cmindex locate 889@cmindex locate
890@item locate @var{arg}@dots{}
891Alias to Emacs's @code{locate} function, which simply runs the external 891Alias to Emacs's @code{locate} function, which simply runs the external
892@command{locate} command and parses the results. 892@command{locate} command and parses the results.
893@xref{Dired and Find, , , emacs, The GNU Emacs Manual}. 893@xref{Dired and Find, , , emacs, The GNU Emacs Manual}.
@@ -897,8 +897,8 @@ If @code{eshell-plain-locate-behavior} is non-@code{nil}, then Emacs's
897internal @code{locate} is not used. This is the same as using 897internal @code{locate} is not used. This is the same as using
898@samp{alias locate '*locate $@@*'}. 898@samp{alias locate '*locate $@@*'}.
899 899
900@item ls [@var{option}]@dots{} [@var{file}]@dots{}
901@cmindex ls 900@cmindex ls
901@item ls [@var{option}]@dots{} [@var{file}]@dots{}
902List information about each @var{file}, including the contents of any 902List information about each @var{file}, including the contents of any
903specified directories. If @var{file} is unspecified, list the 903specified directories. If @var{file} is unspecified, list the
904contents of the current directory. 904contents of the current directory.
@@ -999,25 +999,25 @@ List one file per line.
999 999
1000@end table 1000@end table
1001 1001
1002@item make [@var{arg}]@dots{}
1003@cmindex make 1002@cmindex make
1003@item make [@var{arg}]@dots{}
1004Run @command{make} through @code{compile} when run asynchronously 1004Run @command{make} through @code{compile} when run asynchronously
1005(e.g., @samp{make &}). @xref{Compilation, , , emacs, The GNU Emacs 1005(e.g., @samp{make &}). @xref{Compilation, , , emacs, The GNU Emacs
1006Manual}. Otherwise call the external @command{make} command. 1006Manual}. Otherwise call the external @command{make} command.
1007 1007
1008@item man [@var{arg}]@dots{}
1009@cmindex man 1008@cmindex man
1009@item man [@var{arg}]@dots{}
1010Display Man pages using the Emacs @code{man} command. 1010Display Man pages using the Emacs @code{man} command.
1011@xref{Man Page, , , emacs, The GNU Emacs Manual}. 1011@xref{Man Page, , , emacs, The GNU Emacs Manual}.
1012 1012
1013@item mkdir [-p] @var{directory}@dots{}
1014@cmindex mkdir 1013@cmindex mkdir
1014@item mkdir [-p] @var{directory}@dots{}
1015Make new directories. With @code{-p} or @code{--parents}, 1015Make new directories. With @code{-p} or @code{--parents},
1016automatically make any necessary parent directories as well. 1016automatically make any necessary parent directories as well.
1017 1017
1018@cmindex mv
1018@item mv [@var{option}]@dots{} @var{source} @var{dest} 1019@item mv [@var{option}]@dots{} @var{source} @var{dest}
1019@itemx mv [@var{option}]@dots{} @var{source}@dots{} @var{directory} 1020@itemx mv [@var{option}]@dots{} @var{source}@dots{} @var{directory}
1020@cmindex mv
1021Rename the file @var{source} to @var{dest} or move @var{source} into 1021Rename the file @var{source} to @var{dest} or move @var{source} into
1022@var{directory}. 1022@var{directory}.
1023 1023
@@ -1048,14 +1048,14 @@ Print the name of each item before moving it.
1048 1048
1049@end table 1049@end table
1050 1050
1051@item occur @var{regexp} [@var{nlines}]
1052@cmindex occur 1051@cmindex occur
1052@item occur @var{regexp} [@var{nlines}]
1053Alias to Emacs's @code{occur}. 1053Alias to Emacs's @code{occur}.
1054@xref{Other Repeating Search, , , emacs, The GNU Emacs Manual}. 1054@xref{Other Repeating Search, , , emacs, The GNU Emacs Manual}.
1055 1055
1056@cmindex popd
1056@item popd 1057@item popd
1057@item popd +@var{n} 1058@item popd +@var{n}
1058@cmindex popd
1059Pop a directory from the directory stack and switch to a another place 1059Pop a directory from the directory stack and switch to a another place
1060in the stack. This command can take the following forms: 1060in the stack. This command can take the following forms:
1061 1061
@@ -1071,14 +1071,14 @@ the @var{nth} directory in the stack (counting from zero).
1071 1071
1072@end table 1072@end table
1073 1073
1074@item printnl [@var{arg}]@dots{}
1075@cmindex printnl 1074@cmindex printnl
1075@item printnl [@var{arg}]@dots{}
1076Print all the @var{arg}s separated by newlines. 1076Print all the @var{arg}s separated by newlines.
1077 1077
1078@cmindex pushd
1078@item pushd 1079@item pushd
1079@itemx pushd @var{directory} 1080@itemx pushd @var{directory}
1080@itemx pushd +@var{n} 1081@itemx pushd +@var{n}
1081@cmindex pushd
1082Push the current directory onto the directory stack, then change to 1082Push the current directory onto the directory stack, then change to
1083another directory. This command can take the following forms: 1083another directory. This command can take the following forms:
1084 1084
@@ -1107,12 +1107,12 @@ non-@code{nil}, then @samp{pushd +@var{n}} will instead pop the
1107 1107
1108@end table 1108@end table
1109 1109
1110@item pwd
1111@cmindex pwd 1110@cmindex pwd
1111@item pwd
1112Prints the current working directory. 1112Prints the current working directory.
1113 1113
1114@item rm [@var{option}]@dots{} @var{item}@dots{}
1115@cmindex rm 1114@cmindex rm
1115@item rm [@var{option}]@dots{} @var{item}@dots{}
1116Removes files, buffers, processes, or Emacs Lisp symbols, depending on 1116Removes files, buffers, processes, or Emacs Lisp symbols, depending on
1117the type of each @var{item}. 1117the type of each @var{item}.
1118 1118
@@ -1146,59 +1146,59 @@ Print the name of each item before removing it.
1146 1146
1147@end table 1147@end table
1148 1148
1149@item rmdir @var{directory}@dots{}
1150@cmindex rmdir 1149@cmindex rmdir
1150@item rmdir @var{directory}@dots{}
1151Removes directories if they are empty. 1151Removes directories if they are empty.
1152 1152
1153@item set [@var{var} @var{value}]@dots{}
1154@cmindex set 1153@cmindex set
1154@item set [@var{var} @var{value}]@dots{}
1155Set variable values, using the function @code{set} like a command 1155Set variable values, using the function @code{set} like a command
1156(@pxref{Setting Variables,,, elisp, GNU Emacs Lisp Reference Manual}). 1156(@pxref{Setting Variables,,, elisp, GNU Emacs Lisp Reference Manual}).
1157The value of @var{var} can be a symbol, in which case it refers to a 1157The value of @var{var} can be a symbol, in which case it refers to a
1158Lisp variable, or a string, referring to an environment variable 1158Lisp variable, or a string, referring to an environment variable
1159(@pxref{Arguments}). 1159(@pxref{Arguments}).
1160 1160
1161@item setq [@var{symbol} @var{value}]@dots{}
1162@cmindex setq 1161@cmindex setq
1162@item setq [@var{symbol} @var{value}]@dots{}
1163Set variable values, using the function @code{setq} like a command 1163Set variable values, using the function @code{setq} like a command
1164(@pxref{Setting Variables,,, elisp, GNU Emacs Lisp Reference Manual}). 1164(@pxref{Setting Variables,,, elisp, GNU Emacs Lisp Reference Manual}).
1165 1165
1166@item source @var{file} [@var{argument}]@dots{}
1167@cmindex source 1166@cmindex source
1167@item source @var{file} [@var{argument}]@dots{}
1168Source an Eshell script named @var{file} in a subshell environment, 1168Source an Eshell script named @var{file} in a subshell environment,
1169passing any @var{argument}s to the script (@pxref{Scripts}). This is 1169passing any @var{argument}s to the script (@pxref{Scripts}). This is
1170not to be confused with the command @command{.}, which sources a file 1170not to be confused with the command @command{.}, which sources a file
1171in the current environment. 1171in the current environment.
1172 1172
1173@item time @var{command}@dots{}
1174@cmindex time 1173@cmindex time
1174@item time @var{command}@dots{}
1175Show the time elapsed during the execution of @var{command}. 1175Show the time elapsed during the execution of @var{command}.
1176 1176
1177@cmindex umask
1177@item umask [-S] 1178@item umask [-S]
1178@itemx umask @var{mode} 1179@itemx umask @var{mode}
1179@cmindex umask
1180View the default file permissions for newly created files and 1180View the default file permissions for newly created files and
1181directories. If you pass @code{-S} or @code{--symbolic}, view the 1181directories. If you pass @code{-S} or @code{--symbolic}, view the
1182mode symbolically. With @var{mode}, set the default permissions to 1182mode symbolically. With @var{mode}, set the default permissions to
1183this value. 1183this value.
1184 1184
1185@item unset [@var{var}]@dots{}
1186@cmindex unset 1185@cmindex unset
1186@item unset [@var{var}]@dots{}
1187Unset one or more variables. As with @command{set}, the value of 1187Unset one or more variables. As with @command{set}, the value of
1188@var{var} can be a symbol, in which case it refers to a Lisp variable, 1188@var{var} can be a symbol, in which case it refers to a Lisp variable,
1189or a string, referring to an environment variable. 1189or a string, referring to an environment variable.
1190 1190
1191@item wait [@var{process}]@dots{}
1192@cmindex wait 1191@cmindex wait
1192@item wait [@var{process}]@dots{}
1193Wait until each specified @var{process} has exited. 1193Wait until each specified @var{process} has exited.
1194 1194
1195@item which @var{command}@dots{}
1196@cmindex which 1195@cmindex which
1196@item which @var{command}@dots{}
1197For each @var{command}, identify what kind of command it is and its 1197For each @var{command}, identify what kind of command it is and its
1198location. 1198location.
1199 1199
1200@item whoami
1201@cmindex whoami 1200@cmindex whoami
1201@item whoami
1202Print the current user. This Eshell version of @command{whoami} is 1202Print the current user. This Eshell version of @command{whoami} is
1203connection-aware, so for remote directories, it will print the user 1203connection-aware, so for remote directories, it will print the user
1204associated with that connection. 1204associated with that connection.
@@ -2601,17 +2601,17 @@ external commands. To enable it, add @code{eshell-tramp} to
2601 2601
2602@table @code 2602@table @code
2603 2603
2604@item su [- | -l] [@var{user}]
2605@cmindex su 2604@cmindex su
2605@item su [- | -l] [@var{user}]
2606Uses TRAMP's @command{su} method (@pxref{Inline methods, , , tramp, 2606Uses TRAMP's @command{su} method (@pxref{Inline methods, , , tramp,
2607The Tramp Manual}) to change the current user to @var{user} (or root 2607The Tramp Manual}) to change the current user to @var{user} (or root
2608if unspecified). With @code{-}, @code{-l}, or @code{--login}, provide 2608if unspecified). With @code{-}, @code{-l}, or @code{--login}, provide
2609a login environment. 2609a login environment.
2610 2610
2611@item sudo [-u @var{user}] [-s | @var{command}@dots{}]
2612@cmindex sudo 2611@cmindex sudo
2613@itemx doas [-u @var{user}] [-s | @var{command}@dots{}] 2612@item sudo [-u @var{user}] [-s | @var{command}@dots{}]
2614@cmindex doas 2613@cmindex doas
2614@itemx doas [-u @var{user}] [-s | @var{command}@dots{}]
2615Uses TRAMP's @command{sudo} or @command{doas} method (@pxref{Inline 2615Uses TRAMP's @command{sudo} or @command{doas} method (@pxref{Inline
2616methods, , , tramp, The Tramp Manual}) to run @var{command} as root 2616methods, , , tramp, The Tramp Manual}) to run @var{command} as root
2617via @command{sudo} or @command{doas}. When specifying @code{-u 2617via @command{sudo} or @command{doas}. When specifying @code{-u
@@ -2630,59 +2630,59 @@ add @code{eshell-xtra} to @code{eshell-modules-list}.
2630 2630
2631@table @code 2631@table @code
2632 2632
2633@item count @var{item} @var{seq} [@var{option}]@dots{}
2634@cmindex count 2633@cmindex count
2634@item count @var{item} @var{seq} [@var{option}]@dots{}
2635A wrapper around the function @code{cl-count} (@pxref{Searching 2635A wrapper around the function @code{cl-count} (@pxref{Searching
2636Sequences,,, cl, GNU Emacs Common Lisp Emulation}). This command can 2636Sequences,,, cl, GNU Emacs Common Lisp Emulation}). This command can
2637be used for comparing lists of strings. 2637be used for comparing lists of strings.
2638 2638
2639@item expr @var{str} [@var{separator}] [@var{arg}]@dots{}
2640@cmindex expr 2639@cmindex expr
2640@item expr @var{str} [@var{separator}] [@var{arg}]@dots{}
2641An implementation of @command{expr} using the Calc package. 2641An implementation of @command{expr} using the Calc package.
2642@xref{Top,,, calc, The GNU Emacs Calculator}. 2642@xref{Top,,, calc, The GNU Emacs Calculator}.
2643 2643
2644@item ff @var{directory} @var{pattern}
2645@cmindex ff 2644@cmindex ff
2645@item ff @var{directory} @var{pattern}
2646Shorthand for the the function @code{find-name-dired} (@pxref{Dired 2646Shorthand for the the function @code{find-name-dired} (@pxref{Dired
2647and Find, , , emacs, The Emacs Editor}). 2647and Find, , , emacs, The Emacs Editor}).
2648 2648
2649@item gf @var{directory} @var{regexp}
2650@cmindex gf 2649@cmindex gf
2650@item gf @var{directory} @var{regexp}
2651Shorthand for the the function @code{find-grep-dired} (@pxref{Dired 2651Shorthand for the the function @code{find-grep-dired} (@pxref{Dired
2652and Find, , , emacs, The Emacs Editor}). 2652and Find, , , emacs, The Emacs Editor}).
2653 2653
2654@item intersection @var{list1} @var{list2} [@var{option}]@dots{}
2655@cmindex intersection 2654@cmindex intersection
2655@item intersection @var{list1} @var{list2} [@var{option}]@dots{}
2656A wrapper around the function @code{cl-intersection} (@pxref{Lists as 2656A wrapper around the function @code{cl-intersection} (@pxref{Lists as
2657Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command 2657Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command
2658can be used for comparing lists of strings. 2658can be used for comparing lists of strings.
2659 2659
2660@item mismatch @var{seq1} @var{seq2} [@var{option}]@dots{}
2661@cmindex mismatch 2660@cmindex mismatch
2661@item mismatch @var{seq1} @var{seq2} [@var{option}]@dots{}
2662A wrapper around the function @code{cl-mismatch} (@pxref{Searching 2662A wrapper around the function @code{cl-mismatch} (@pxref{Searching
2663Sequences,,, cl, GNU Emacs Common Lisp Emulation}). This command can 2663Sequences,,, cl, GNU Emacs Common Lisp Emulation}). This command can
2664be used for comparing lists of strings. 2664be used for comparing lists of strings.
2665 2665
2666@item set-difference @var{list1} @var{list2} [@var{option}]@dots{}
2667@cmindex set-difference 2666@cmindex set-difference
2667@item set-difference @var{list1} @var{list2} [@var{option}]@dots{}
2668A wrapper around the function @code{cl-set-difference} (@pxref{Lists 2668A wrapper around the function @code{cl-set-difference} (@pxref{Lists
2669as Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command can be 2669as Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command can be
2670used for comparing lists of strings. 2670used for comparing lists of strings.
2671 2671
2672@item set-exclusive-or @var{list1} @var{list2} [@var{option}]@dots{}
2673@cmindex set-exclusive-or 2672@cmindex set-exclusive-or
2673@item set-exclusive-or @var{list1} @var{list2} [@var{option}]@dots{}
2674A wrapper around the function @code{cl-set-exclusive-or} (@pxref{Lists 2674A wrapper around the function @code{cl-set-exclusive-or} (@pxref{Lists
2675as Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command can be 2675as Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command can be
2676used for comparing lists of strings. 2676used for comparing lists of strings.
2677 2677
2678@item substitute @var{new} @var{old} @var{seq} [@var{option}]@dots{}
2679@cmindex substitute 2678@cmindex substitute
2679@item substitute @var{new} @var{old} @var{seq} [@var{option}]@dots{}
2680A wrapper around the function @code{cl-substitute} (@pxref{Sequence 2680A wrapper around the function @code{cl-substitute} (@pxref{Sequence
2681Functions,,, cl, GNU Emacs Common Lisp Emulation}). This command can 2681Functions,,, cl, GNU Emacs Common Lisp Emulation}). This command can
2682be used for comparing lists of strings. 2682be used for comparing lists of strings.
2683 2683
2684@item union @var{list1} @var{list2} [@var{option}]@dots{}
2685@cmindex union 2684@cmindex union
2685@item union @var{list1} @var{list2} [@var{option}]@dots{}
2686A wrapper around the function @code{cl-union} (@pxref{Lists as Sets,,, 2686A wrapper around the function @code{cl-union} (@pxref{Lists as Sets,,,
2687cl, GNU Emacs Common Lisp Emulation}). This command can be used for 2687cl, GNU Emacs Common Lisp Emulation}). This command can be used for
2688comparing lists of strings. 2688comparing lists of strings.