From ef478d52c99727fb4a1e152d02e9d0fe70474520 Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 25 Nov 2019 16:30:58 +0000 Subject: [PATCH 1/3] correcting cat subject --- subjects/cat.en.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 03a923b14..67232219f 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -18,13 +18,15 @@ Write a program that has the same behaviour as the system's `cat` command-line. `"Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence."` +- In case of error the program should print the error. + - The program must be submitted inside a folder named `cat`. ```console student@ubuntu:~/piscine-go/cat$ go build -student@ubuntu:~/piscine-go/cat$ ./cat Hello There +student@ubuntu:~/piscine-go/cat$ ./cat +Hello Hello -There student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt From d51c78c4ccfe88ddd21b48a7c53c31a4b40ae7f3 Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 26 Nov 2019 09:48:22 +0000 Subject: [PATCH 2/3] adding error to exemple --- subjects/cat.en.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 67232219f..29aa610e9 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -24,13 +24,15 @@ Write a program that has the same behaviour as the system's `cat` command-line. ```console student@ubuntu:~/piscine-go/cat$ go build -student@ubuntu:~/piscine-go/cat$ ./cat -Hello +student@ubuntu:~/piscine-go/cat$ ./cat abc +open abc: no such file or directory Hello student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing +student@ubuntu:~/piscine-go/cat$ ./cat +Hello student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing - "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence." +student@ubuntu:~/piscine-go/cat$ ``` From 1fbca1cccb2cc881f69de9e2ca09780900389d32 Mon Sep 17 00:00:00 2001 From: LEEDASILVA <39002521+LEEDASILVA@users.noreply.github.com> Date: Tue, 26 Nov 2019 14:40:21 +0000 Subject: [PATCH 3/3] Update cat.en.md --- subjects/cat.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 29aa610e9..8e5875d36 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -26,11 +26,11 @@ Write a program that has the same behaviour as the system's `cat` command-line. student@ubuntu:~/piscine-go/cat$ go build student@ubuntu:~/piscine-go/cat$ ./cat abc open abc: no such file or directory -Hello student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing student@ubuntu:~/piscine-go/cat$ ./cat Hello +Hello^C student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence."