Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

touch command ignores cwd #305

Open
tugrulates opened this issue Jan 26, 2025 · 0 comments
Open

touch command ignores cwd #305

tugrulates opened this issue Jan 26, 2025 · 0 comments

Comments

@tugrulates
Copy link

tugrulates commented Jan 26, 2025

Minimal example (bug.ts):

import $ from "@david/dax";

await $`rm -Rf *.txt test_dir`;
await $`mkdir -p test_dir`;
await $`touch 1.txt`.cwd("test_dir");
await $`echo > 2.txt`.cwd("test_dir");

console.log("./test_dir/ contents:");
await $`ls`.cwd("test_dir");

console.log("./ contents:");
await $`ls`;
> deno run -A bug.ts
./test_dir/ contents:
2.txt
./ contents:
1.txt           bug.ts          test_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant