From 4c271166bbad2bb6a77ddf201b32aa6ce4e0a53c Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 22 Oct 2020 18:13:54 +0300 Subject: Properly run commands on ExitSuccess/ExitFailure --- man/rs.1.scd | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'man') diff --git a/man/rs.1.scd b/man/rs.1.scd index 6256453..2036f7a 100644 --- a/man/rs.1.scd +++ b/man/rs.1.scd @@ -8,9 +8,18 @@ rs - yet another shell This is yet another shell -# BUILTINS - -|[ *Builtin* +## Command syntax +|[ +:- Description +| ; +: Run command regardless of the previous command's exit status. +| || +:[ Run command if the previous command has failed. (todo) +| && +:[ Run command if the previous command has succeeded. (todo) + +## Builtins +|[ :- Arguments :- Description | ! @@ -29,10 +38,10 @@ This is yet another shell : key :[ Remove the 'key' environment variable. -# MOTD +## motd The motd printed on startup is read from /etc/motd. -# PROMPT +## Prompt To set the prompt, use the PROMPT environment variable. If one is not set, " {USER}@{HOST} [{PWD}]\n{$} " is used by default. -- cgit v1.2.1