Problem
Bashkit's ls builtin strips directory paths from arguments, returning only filenames when given full paths.
Reproduction
mkdir -p /tmp/test
echo x > /tmp/test/a.md
echo y > /tmp/test/b.md
ls -t /tmp/test/*.md
Real ls: /tmp/test/a.md\n/tmp/test/b.md
Bashkit ls: a.md\nb.md
Impact
Scripts that pass ls output to other commands (e.g., ls -t dir/*.md | xargs awk) get filenames without paths, causing "file not found" errors. Used in wedow/ticket's cmd_closed.
Problem
Bashkit's
lsbuiltin strips directory paths from arguments, returning only filenames when given full paths.Reproduction
Real ls:
/tmp/test/a.md\n/tmp/test/b.mdBashkit ls:
a.md\nb.mdImpact
Scripts that pass
lsoutput to other commands (e.g.,ls -t dir/*.md | xargs awk) get filenames without paths, causing "file not found" errors. Used in wedow/ticket'scmd_closed.