From 35b12fe5ecd035104bb2e17c1358d4a5c6c7c6db Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Thu, 29 Dec 2022 16:47:33 +0100 Subject: [PATCH] Fix usage of deprecated C-style logical `and` (#7627) n untested examples we still had `&&` --- crates/nu-command/src/filesystem/ls.rs | 2 +- crates/nu-command/src/filesystem/rm.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/filesystem/ls.rs b/crates/nu-command/src/filesystem/ls.rs index 188b04663..49a0b774c 100644 --- a/crates/nu-command/src/filesystem/ls.rs +++ b/crates/nu-command/src/filesystem/ls.rs @@ -307,7 +307,7 @@ impl Command for Ls { Example { description: "List all dirs in your home directory which have not been modified in 7 days", - example: "ls -as ~ | where type == dir && modified < ((date now) - 7day)", + example: "ls -as ~ | where type == dir and modified < ((date now) - 7day)", result: None, }, Example { diff --git a/crates/nu-command/src/filesystem/rm.rs b/crates/nu-command/src/filesystem/rm.rs index d4ff0a761..b1feefb8d 100644 --- a/crates/nu-command/src/filesystem/rm.rs +++ b/crates/nu-command/src/filesystem/rm.rs @@ -126,7 +126,7 @@ impl Command for Rm { }); examples.push(Example { description: "Delete all 0KB files in the current directory", - example: "ls | where size == 0KB && type == file | each { rm $in.name } | null", + example: "ls | where size == 0KB and type == file | each { rm $in.name } | null", result: None, }); examples