Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

weird shell behavior in tasks, wirldcard not read correctly? #1534

Closed
sg-qwt opened this issue Apr 13, 2023 · 0 comments
Closed

weird shell behavior in tasks, wirldcard not read correctly? #1534

sg-qwt opened this issue Apr 13, 2023 · 0 comments

Comments

@sg-qwt
Copy link

sg-qwt commented Apr 13, 2023

Again, following babashka book and playing with tasks, noticed a very weird thing:

> tree .github
.github
└── workflows
    └── main.yaml
{:tasks
 {clean (shell "rm -rf .github/workflows/*")
  clean2 (shell "rm -rf .github/workflows")}}
  1. manually running rm -rf .github/workflows/* has no issue delete main.yaml
  2. running bb clean does not delete main.yaml, empty output, no error
  3. running bb clean2 does delete workflows folder as whole as expected

Maybe shell has issue with wildcard?
Related babashka/process#103. An echo maybe helpful to figure out what's going on this case.

related versions

babashka v1.3.176

Clojure CLI version 1.11.1.1257

java --version
openjdk 11.0.18 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+0-adhoc..source)
OpenJDK 64-Bit Server VM (build 11.0.18+0-adhoc..source, mixed mode)

platform
Linux 6.1.20 NixOS x86_64 GNU/Linux

@babashka babashka locked and limited conversation to collaborators Apr 13, 2023
@borkdude borkdude converted this issue into discussion #1535 Apr 13, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant