Skip to content

Commit aebc7c6

Browse files
author
Arpan Pandey
committed
Forgot to apply Paul's update
1 parent f9fc7d1 commit aebc7c6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

course-definition.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,16 @@ stages:
13031303
description_md: |-
13041304
In this stage, you'll add support for [history](https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html#index-history) as a shell builtin.
13051305
1306+
### The history builtin
1307+
1308+
[history](https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html#index-history) as a shell builtin that lists previously executed commands. Example usage:
1309+
```bash
1310+
$ history
1311+
1 previous_command_1
1312+
2 previous_command_2
1313+
3 history
1314+
```
1315+
13061316
### Tests
13071317
13081318
The tester will execute your program like this:
@@ -1321,11 +1331,6 @@ stages:
13211331
13221332
The tester will then execute the `type history` command and expect the output to be `history is a shell builtin`.
13231333
1324-
### Notes
1325-
1326-
- For now we're just testing that the `type` builtin identifies `history` as a valid builtin.
1327-
- We'll handle the actual implementation of the `history` builtin in later stages.
1328-
13291334
marketing_md: |-
13301335
In this stage, you'll add support for the `history` builtin command in `type`.
13311336

0 commit comments

Comments
 (0)