summaryrefslogtreecommitdiff
path: root/Userland/Utilities/ls.cpp
AgeCommit message (Collapse)Author
2021-09-18AK: Make Utf8View constructors inline and remove C string constructorAndreas Kling
Using StringView instead of C strings is basically always preferable. The only reason to use a C string is because you are calling a C API.
2021-08-18Utilities: Remove memset calls inside lsJean-Baptiste Boric
2021-08-18Utilities: Properly sort files in lsJean-Baptiste Boric
2021-08-12Kernel+LibC: Use 64 bit values for ino_tLiav A
Since the InodeIndex encapsulates a 64 bit value, it is correct to ensure that the Kernel is exposing the entire value and the LibC is aware of it. This commit requires an entire re-compile because it's essentially a change in the Kernel ABI, together with a corresponding change in LibC.
2021-07-12ls: Add option to list subdirectories recursivelyAriel Don
List subdirectories encountered using -R or --recursive flags with ls.
2021-06-01LibGUI+Shell+bt+ls: Use proper APIs for creating file URLsMax Wipfli
This patch replaces ad-hoc generation of file URL strings with using URL::create_with_file_scheme().
2021-05-25ls: Fix incorrect -t sort orderAndreas Kling
Dr. POSIX says -t should sort the output by mtime ascending.
2021-05-17Utilities: Correct non-standard assert macros includesJean-Baptiste Boric
2021-05-14LibC: Move makedev(), major(), minor(), to sys/types.hJean-Baptiste Boric
It's technically not specified by POSIX, but it appears most Unix-like systems worth mentioning put those definitions there. Also, it's more logical since the dev_t type is defined there.
2021-05-03Userland: Fix 64-bit portability issuesGunnar Beutner
2021-04-26Utilities: Make ls respect options when specifying more than one pathGunnar Beutner
When specifying more than one path (e.g. with ls -l /usr /bin) ls would ignore other display options and fall back to showing the files in short mode.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-18ls: Remove extra spaces after filenames when pipingJagger De Leo
Fixes #5671
2021-04-17ls: list files in cwd before listing directories when listing pathssetepenre
2021-04-11ls: ls will print directory name when listing multiple directoriessetepenre
2021-03-17ls: Make 64 bit cleanJean-Baptiste Boric
2021-03-17Userland: Fix printf specifiers with off_tJean-Baptiste Boric
In theory we should probably use the 'j' qualifier, but we don't support it.
2021-02-23Everywhere: Rename ASSERT => VERIFYAndreas Kling
(...and ASSERT_NOT_REACHED => VERIFY_NOT_REACHED) Since all of these checks are done in release builds as well, let's rename them to VERIFY to prevent confusion, as everyone is used to assertions being compiled out in release. We can introduce a new ASSERT macro that is specifically for debug checks, but I'm doing this wholesale conversion first since we've accumulated thousands of these already, and it's not immediately obvious which ones are suitable for ASSERT.
2021-01-29ls: Lazily align the number of hard links in ls output :^)Andreas Kling
Fixes #5155
2021-01-12Userland: Move command-line utilities to Userland/Utilities/Andreas Kling