From 651fea2a13c6da9dd8c44efb423b6cd83cd26b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Ma=C5=82ysa?= Date: Sat, 21 Sep 2024 21:47:58 +0200 Subject: [PATCH 1/2] fix: ls: Remove printing trailing space --- src/commands/ls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/ls.rs b/src/commands/ls.rs index ae79fdee1..320993497 100644 --- a/src/commands/ls.rs +++ b/src/commands/ls.rs @@ -141,7 +141,7 @@ impl LsCmd { if self.long { print_node(&node, &path, self.numeric_id); } else { - println!("{path:?} "); + println!("{path:?}"); } } From 264c60bba82194046961c7ca456444118e831beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Ma=C5=82ysa?= Date: Sat, 21 Sep 2024 23:57:02 +0200 Subject: [PATCH 2/2] fix: ls: Print unquoted path --- src/commands/ls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/ls.rs b/src/commands/ls.rs index 320993497..054ec98cb 100644 --- a/src/commands/ls.rs +++ b/src/commands/ls.rs @@ -141,7 +141,7 @@ impl LsCmd { if self.long { print_node(&node, &path, self.numeric_id); } else { - println!("{path:?}"); + println!("{}", path.display()); } }