mirror of
https://github.com/nushell/nushell.git
synced 2025-04-15 16:58:19 +02:00
Fix usage of deprecated C-style logical and
(#7627)
n untested examples we still had `&&`
This commit is contained in:
parent
6ac26094da
commit
35b12fe5ec
@ -307,7 +307,7 @@ impl Command for Ls {
|
|||||||
Example {
|
Example {
|
||||||
description:
|
description:
|
||||||
"List all dirs in your home directory which have not been modified in 7 days",
|
"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,
|
result: None,
|
||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
|
@ -126,7 +126,7 @@ impl Command for Rm {
|
|||||||
});
|
});
|
||||||
examples.push(Example {
|
examples.push(Example {
|
||||||
description: "Delete all 0KB files in the current directory",
|
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,
|
result: None,
|
||||||
});
|
});
|
||||||
examples
|
examples
|
||||||
|
Loading…
Reference in New Issue
Block a user