From dabf0ab98fcbaa097bd32da365fc2f3737fc4ac3 Mon Sep 17 00:00:00 2001 From: samirm00 Date: Tue, 5 Mar 2024 05:43:46 +0100 Subject: [PATCH] add how bash process commands --- 03-how-bash-process-commands/01.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/03-how-bash-process-commands/01.sh b/03-how-bash-process-commands/01.sh index 3f2642b..29720d4 100644 --- a/03-how-bash-process-commands/01.sh +++ b/03-how-bash-process-commands/01.sh @@ -3,5 +3,12 @@ # Author: Samir M. # Date: 2024-03-04 # Modified: 2024-03-04 -# Description: Brace expansion -# Usage: ./01.sh \ No newline at end of file +# Description: How bash processes command lines +# Usage: ./01.sh + + +# Bash goes through 5 steps to interpret a command line. + +# Step 1: Tokenisation: +# The command line is broken into tokens. Tokens are the smallest units of a command line. +# Tokens are separated by metacharacters, such as spaces, tabs, and newlines, | ; & ( ) < >.