mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
694 B
20 lines
694 B
6 years ago
|
## ztail
|
||
6 years ago
|
|
||
6 years ago
|
### Instructions
|
||
6 years ago
|
|
||
5 years ago
|
Write a program called `ztail` that has the same behaviour as the system command `tail`, but which takes at least one file as argument.
|
||
6 years ago
|
|
||
5 years ago
|
- The only option to be handled is `-c`. This option will be used in all tests.
|
||
6 years ago
|
|
||
5 years ago
|
- For this program the "os" package can be used.
|
||
6 years ago
|
|
||
5 years ago
|
- For the program to pass the tests the convention for the return code of program in Unix systems should be followed.
|
||
6 years ago
|
|
||
5 years ago
|
- Handle the errors and output the same error messages as `tail`.
|
||
5 years ago
|
|
||
5 years ago
|
- For more information consult the man page for `tail`.
|
||
5 years ago
|
|
||
|
### Note:
|
||
|
|
||
|
This program is gonna be tested against `tail`, be sure to check all the different error messages with different permutations of the arguments.
|