From f6b2b9f9a5a1f527346c7ac37699bca86db65ea2 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 6 Jan 2006 01:37:53 +1000 Subject: Change syntax of 'and' and 'or' to infix order darcs-hash:20060105153753-ac50b-4413a5d2652232bb38c97f5c673251193fc848ec.gz --- doc_src/and.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'doc_src/and.txt') diff --git a/doc_src/and.txt b/doc_src/and.txt index ca454bce..9de49192 100644 --- a/doc_src/and.txt +++ b/doc_src/and.txt @@ -2,22 +2,16 @@ \section and and - Conditionally execute a command \subsection and-synopsis Synopsis - and COMMAND1; COMMAND2 + COMMAND1; and COMMAND2 \subsection and-description Description -The \c and builtin is used to execute one command, and if it returns -zero status, also execute a second command. +The \c and builtin is used to execute a command if the current exit status (as set by the last previous command) is zero \subsection and-example Example The following code runs the \c make command to build a program, and if it suceeds, it runs make install, which installs the program.
-and make; make install
+make; and make install
 
-\c or and \c and can be nested, as in this example, that attempts to build and install a program, and removed the files created by the build process on failiure - -
-or and make; make install; make clean
-
-- cgit v1.2.3