branch: externals/detached commit 6e7a236fa5858b7a9adae487bee7e767baf611e9 Author: Niklas Eklund <niklas.ekl...@posteo.net> Commit: Niklas Eklund <niklas.ekl...@posteo.net>
Update README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d49cda5087..8bd2900bf6 100644 --- a/README.md +++ b/README.md @@ -286,9 +286,11 @@ Which is compatible with the options described in [script(1) - Linux manual page ## Chained commands -With `detached` there exists the possibility to enable callback for a session. With this functionality its possible to create a new session once a session is finished. Here is an example which essentially provides `sleep 1 && ls && ls -la` but every step in the chain is run in isolation. +With `detached` there exist the possibility to use callback. This functionality makes it possible to create chained sessions, essentially starting a new session once a previous one is finished. Here is an example: ``` emacs-lisp +;; The detached commands are run in serial. +;; This is equivalent to run sleep 1 && ls && ls -la (let* ((default-directory "/tmp") (detached-session-action `(,@detached-shell-command-session-action