Skip to content

Commit b456fa3

Browse files
committed
Clarify shell command execution instructions in course-definition.yml
Update the description to specify that the shell should handle command searches and permissions. This change enhances clarity by consistently referring to the shell's role in executing commands and improves user understanding of command handling outcomes.
1 parent daa6997 commit b456fa3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

course-definition.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,15 +312,15 @@ stages:
312312
description_md: |-
313313
In this stage, you'll extend the `type` builtin to search for executable files using [PATH](https://en.wikipedia.org/wiki/PATH_(variable)).
314314
315-
[PATH](https://en.wikipedia.org/wiki/PATH_(variable)) is an environment variable that specifies a set of directories where executable programs are located. When a command is received, the program should search for the command in the directories listed in the PATH environment variable.
315+
[PATH](https://en.wikipedia.org/wiki/PATH_(variable)) is an environment variable that specifies a set of directories where executable programs are located. When a command is received, your shell should search for the command in the directories listed in the PATH environment variable.
316316
317-
For example, PATH like `/dir1:/dir2:/dir3` means that the program should search for the command in `/dir1`, then `/dir2`, and finally `/dir3`, in that order.
317+
For example, PATH like `/dir1:/dir2:/dir3` means that your shell should search in `/dir1`, then `/dir2`, and finally `/dir3`, in that order.
318318
319319
Caveat: Not all commands found are necessarily executable.
320320
321-
- If the command is found (but it does not have execute permissions), the program should skip it and continue searching.
322-
- If the command is found (and it has execute permissions), the program should print the path to the command.
323-
- If the command is not found, the program should print `<command>: not found`.
321+
- If the command is found (but it does not have execute permissions), your shell should skip it and continue searching.
322+
- If the command is found (and it has execute permissions), your shell should print the path to the command.
323+
- If the command is not found, your shell should print `<command>: not found`.
324324
325325
### Tests
326326

0 commit comments

Comments
 (0)