From 363d89d53d919921224cc114a15728298c348f68 Mon Sep 17 00:00:00 2001 From: Remzi Arpaci-Dusseau Date: Thu, 8 Feb 2018 09:37:10 -0600 Subject: [PATCH] Project clarifications: strtok_r might be more useful --- processes-shell/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/processes-shell/README.md b/processes-shell/README.md index eee6d06..5f9432f 100644 --- a/processes-shell/README.md +++ b/processes-shell/README.md @@ -82,7 +82,8 @@ should not read user input (from `stdin`) but rather from this file to get the commands to execute. To parse the input line into constituent pieces, you might want to use -`strtok()`. Read the man page (carefully) for more details. +`strtok()` (or, if doing nested tokenization, use `strtok_r()`). Read the man +page (carefully) for more details. To execute commands, look into `fork()`, `exec()`, and `wait()/waitpid()`. See the man pages for these functions, and also read the relevant [book