diff --git a/README.md b/README.md index 5ae4b0a..35ce87a 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ def main(args: Array[String]): Unit = { } // list child directories of "." val cwd: Path = ".".path - for ( (p: Path) <- cwd.paths.filter { _.isDirectory }){ + for ( p: Path <- cwd.paths.filter { _.isDirectory }){ printf("%s\n", p.norm) } } @@ -61,7 +61,7 @@ Example `@atFile` ``` ```scala -#!/usr/bin/env -S scala -cp @~/.scala3cp +#!/usr/bin/env -S scala -cp @/home/username/.scala3cp import vastblue.pathextend.* def main(args: Array[String]): Unit = { @@ -71,7 +71,7 @@ def main(args: Array[String]): Unit = { } // list child directories of "." val cwd: Path = ".".path - for ( (p: Path) <- cwd.paths.filter { _.isDirectory }){ + for ( p: Path <- cwd.paths.filter { _.isDirectory }){ printf("%s\n", p.norm) } } diff --git a/src/main/scala/vastblue/Platform.scala b/src/main/scala/vastblue/Platform.scala index a1714f8..cd17ee4 100644 --- a/src/main/scala/vastblue/Platform.scala +++ b/src/main/scala/vastblue/Platform.scala @@ -54,7 +54,7 @@ object Platform { printf("--version: [%s]\n", getStdout(path.norm, "--version").take(1).mkString) } } - val cwd = ".".path + val cwd = ".".path.toAbsolutePath for ((p: Path) <- cwd.paths if p.isDirectory) { printf("%s\n", p.norm) }