Fix usage of deprecated C-style logical and (#7627)

n untested examples we still had `&&`
This commit is contained in:
Stefan Holderbach 2022-12-29 16:47:33 +01:00 committed by GitHub
parent 6ac26094da
commit 35b12fe5ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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