We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba120fa commit 6f08d18Copy full SHA for 6f08d18
1 file changed
implement-shell-tools/ls/ls.js
@@ -18,7 +18,11 @@ const files = await fs.readdir(directory);
18
19
const visibleFiles = options.a ? files : files.filter(file => !file.startsWith("."));
20
21
-for (const file of visibleFiles) {
22
- console.log(file);
+if (options["1"]) {
+ for (const file of visibleFiles) {
23
+ console.log(file);
24
+ }
25
+} else {
26
+ console.log(visibleFiles.join(" "));
27
}
28
0 commit comments