From e3e0091398159899a274f297071e03d06926c0fc Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 27 Mar 2026 17:11:02 +0000 Subject: [PATCH 1/2] Add more expected test cases for ls implementations Some trainees are doing a bit less than I was expecting when originally setting this. --- implement-shell-tools/ls/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/implement-shell-tools/ls/README.md b/implement-shell-tools/ls/README.md index edbfb811a..c0b81e0ae 100644 --- a/implement-shell-tools/ls/README.md +++ b/implement-shell-tools/ls/README.md @@ -6,6 +6,9 @@ Your task is to implement your own version of `ls`. It must act the same as `ls` would, if run from the directory containing this README.md file, for the following command lines: +* `ls sample-files` +* `ls sample-files/1.txt` +* `ls sample-files/*` * `ls -1` * `ls -1 sample-files` * `ls -1 -a sample-files` From ed4be1174290e0a7f7ee71eea0949dbdc505d6a4 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 27 Mar 2026 17:14:34 +0000 Subject: [PATCH 2/2] Make sure wc flags aren't mutually exclusive --- implement-shell-tools/wc/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/implement-shell-tools/wc/README.md b/implement-shell-tools/wc/README.md index bd76b655a..925e52276 100644 --- a/implement-shell-tools/wc/README.md +++ b/implement-shell-tools/wc/README.md @@ -11,6 +11,8 @@ It must act the same as `wc` would, if run from the directory containing this RE * `wc -w sample-files/3.txt` * `wc -c sample-files/3.txt` * `wc -l sample-files/*` +* `wc -w -l sample-files/3.txt` +* `wc -w -l sample-files/*` Matching any additional behaviours or flags are optional stretch goals.