nushell/crates/nu-command
Reilly Wood 57ce6a7c66
Fix ls behaviour when directory is empty (#8439)
Prior to this PR, `ls` would return `nothing` in an empty directory.
After this PR, it returns an empty `List`. This makes the behaviour of
`ls` more consistent and easier to reason about (IMO).

This was prompted by a user noticing that `ls | where size == 0KB and
type == file` breaks when run in an empty directory:

```
  × Input type not supported.
   ╭─[entry #12:1:1]
 1 │ ls | where size == 0KB and type == file
   · ─┬   ──┬──
   ·  │     ╰── only list, binary, raw data or range input data is supported
   ·  ╰── input type: nothing
   ╰────
```

If people agree with this change, let's wait until after the 0.77
release so we have a bit more time to test it.
2023-03-15 18:31:07 +13:00
..
assets refactor html module (#5246) 2022-04-20 08:50:14 -05:00
proptest-regressions/format_conversions add tests, deal with pipes, newlines, tabs for to nuon (#6391) 2022-09-01 14:08:19 +02:00
src Fix ls behaviour when directory is empty (#8439) 2023-03-15 18:31:07 +13:00
tests Modify reject algorithm for identical elements (#8446) 2023-03-14 23:26:48 +01:00
Cargo.toml Bump to 0.77.1 development version (#8453) 2023-03-14 23:26:08 +01:00
LICENSE Include license text in all crates (#5094) 2022-04-08 10:47:13 +02:00