This commit is contained in:
Raven Scott
2026-04-03 20:33:24 -04:00
parent ae6b7f8652
commit e58a9f99d6
184 changed files with 1636 additions and 109 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
/* BARE_OS_BIN_API 1.0.0 — bump when staged /bin script semantics change (see developer guide). */
/** Shared helpers for drive-resident /bin scripts (prepended before each command). */
function bareStdin(ctx) {
return typeof ctx.shellStdin === 'string' ? ctx.shellStdin : ''
@@ -117,7 +118,7 @@ async function run(ctx, argv) {
const rest = []
for (let i = 1; i < argv.length; i++) {
const a = argv[i]
if (a === '-maxdepth' && argv[i + 1]) {
if ((a === '-maxdepth' || a === '-depth') && argv[i + 1]) {
maxDepth = Number.parseInt(argv[++i], 10)
continue
}