Skip to content

Commit dc1246b

Browse files
authored
Merge pull request #11 from codecrafters-io/fix-stage-description
Fix stage description for type command
2 parents 68e82a6 + a5452e6 commit dc1246b

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
@@ -219,7 +219,7 @@ stages:
219219
$ type exit
220220
exit is a shell builtin
221221
$ type nonexistent
222-
nonexistent not found
222+
nonexistent: not found
223223
$ type cat
224224
cat is /bin/cat
225225
```
@@ -245,14 +245,14 @@ stages:
245245
$ type type
246246
type is a shell builtin
247247
$ type nonexistent
248-
nonexistent not found
248+
nonexistent: not found
249249
$
250250
```
251251
252252
The tester will check if the `type` command responds correctly based on the command provided:
253253
254254
- If a command is a shell builtin, the expected output is `<command> is a shell builtin`.
255-
- If a command is not recognized, the expected output is `<command> not found`.
255+
- If a command is not recognized, the expected output is `<command>: not found`.
256256
257257
### Notes
258258
@@ -269,7 +269,7 @@ stages:
269269
270270
[PATH](https://en.wikipedia.org/wiki/PATH_(variable)) is an environment variable that specifies a set of directories
271271
where executable programs are located. When a command is received, the program should search for the command in the
272-
directories listed in the PATH environment variable. If the command is found, the program should print the path to the command. If the command is not found, the program should print `<command>: command not found`.
272+
directories listed in the PATH environment variable. If the command is found, the program should print the path to the command. If the command is not found, the program should print `<command>: not found`.
273273
274274
### Tests
275275
@@ -287,7 +287,7 @@ stages:
287287
$ type abcd
288288
abcd is /usr/local/bin/abcd
289289
$ type missing_cmd
290-
missing_cmd: command not found
290+
missing_cmd: not found
291291
$
292292
```
293293

0 commit comments

Comments
 (0)