Skip to content

Commit f906baf

Browse files
authored
Update completions-05-wh6.md
1 parent 6ca9fe4 commit f906baf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stage_descriptions/completions-05-wh6.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ In this stage, you'll implement tab completion for multiple executables that sha
22

33
### Handling Multiple Matches
44

5-
When the user types a command prefix and presses `<TAB>`, your shell should identify all executables in PATH that match the prefix and follow these steps:
5+
When a user types a command prefix and presses `<TAB>`, your shell should find all executables in PATH that match the prefix and do the following:
66

77
1. On the first `<TAB>` press, ring the bell (using `\x07`).
88
2. On the second `<TAB>` press:
9-
- Print all matching executables on a new line. They must be in **alphabetical order** and separated by two spaces (<code style="white-space: pre;"> </code>).
10-
- Display the initial prompt on the next line.
9+
- Print all matching executables on a new line. List them in **alphabetical order**, separated by two spaces (<code style="white-space: pre;"> </code>).
10+
- Show the prompt again on the next line, keeping the original command prefix.
1111

1212
For example:
1313

0 commit comments

Comments
 (0)