File: em-pred.el.html

Argument predication is used to affect which members of a list are selected for use as argument. This is most useful with globbing, but can be used on any list argument, to select certain members.

Argument modifiers are used to manipulate argument values. For example, sorting lists, upcasing words, substituting characters, etc.

Here are some examples of how to use argument predication. Most of the predicates and modifiers are modeled after those provided by zsh.

  ls -ld *(/) ; list all directories
  ls -l *(@u'johnw') ; list all symlinks owned by 'johnw'
  bzip2 -9v **/*(a+30) ; compress everything which hasn't been
                          accessed in 30 days
  echo *.c(:o:R) ; a reversed, sorted list of C files
  *(^@:U^u0) ; all non-symlinks not owned by 'root', upcased
  chmod u-x *(U*) : remove exec bit on all executables owned by user

See the zsh docs for more on the syntax ([(zsh.info)Filename Generation]).

Defined variables (6)

eshell-modifier-alistA list of modifiers than can be applied to an argument expansion.
eshell-pred-delimiter-pairsA list of delimiter pairs that can be used in argument predicates/modifiers.
eshell-pred-load-hookA list of functions to run when ‘eshell-pred’ is loaded.
eshell-pred-modeNon-nil if Eshell-Pred mode is enabled.
eshell-pred-mode-hookHook run after entering or leaving ‘eshell-pred-mode’.
eshell-predicate-alistA list of predicates than can be applied to a globbing pattern.

Defined functions (19)

eshell-add-pred-func(PRED FUNCS NEGATE FOLLOW)
eshell-apply-modifiers(LST PREDICATES MODIFIERS STRING-DESC)
eshell-get-comparison-modifier-argument(&optional FUNCTIONS)
eshell-get-delimited-modifier-argument(&optional CHAINED-P)
eshell-get-numeric-modifier-argument()
eshell-include-members(MOD-CHAR &optional INVERT-P)
eshell-join-members()
eshell-parse-arg-modifier()
eshell-parse-modifiers()
eshell-pred-file-links()
eshell-pred-file-mode(MODE)
eshell-pred-file-size()
eshell-pred-file-time(MOD-CHAR MOD-TYPE ATTR-INDEX)
eshell-pred-file-type(TYPE)
eshell-pred-initialize()
eshell-pred-mode(&optional ARG)
eshell-pred-substitute(&optional REPEAT)
eshell-pred-user-or-group(MOD-CHAR MOD-TYPE ATTR-INDEX GET-ID-FUNC)
eshell-split-members()

Defined faces (0)