[GH-ISSUE #1046] file path with spaces not supported. (bash: /mnt/d/java: No such file or directory) #607

Closed
opened 2026-03-01 21:44:55 +03:00 by kerem · 3 comments
Owner

Originally created by @sijmenvb on GitHub (Mar 16, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1046

i keep getting the following error bash: /mnt/d/java: No such file or directory

the issue seems to be the the command is docker exec cmd=[bash --noprofile --norc -e -o pipefail /mnt/d/java projects/Software Engenering/workflow/2] user=
but it seems to split on the space.

Expected behaviour

I would expect the commands to have quotes for the path like so : docker exec cmd=[bash --noprofile --norc -e -o pipefail "/mnt/d/java projects/Software Engenering/workflow/2"] user=
or some replacing spaces with _ (underscores)

Actual behaviour

it does not and sees the path as only /mnt/d/java

Originally created by @sijmenvb on GitHub (Mar 16, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1046 i keep getting the following error `bash: /mnt/d/java: No such file or directory` the issue seems to be the the command is `docker exec cmd=[bash --noprofile --norc -e -o pipefail /mnt/d/java projects/Software Engenering/workflow/2] user=` but it seems to split on the space. <!-- - Operating System: Windows - Architecture: x64 (64-bit) - Apple M1: no - Docker version: 20.10.12 - `act` version: 0.2.24 --> ## Expected behaviour I would expect the commands to have quotes for the path like so : `docker exec cmd=[bash --noprofile --norc -e -o pipefail "/mnt/d/java projects/Software Engenering/workflow/2"] user=` or some replacing spaces with _ (underscores) ## Actual behaviour it does not and sees the path as only /mnt/d/java
kerem 2026-03-01 21:44:55 +03:00
Author
Owner

@robertkowalski commented on GitHub (Mar 21, 2022):

using a project with spaces in the path works for me, can you provide a workflow / repository to reproduce the issue?

it would be good if you could fill out the issue template, so we can reproduce the environment, too

<!-- gh-comment-id:1073729964 --> @robertkowalski commented on GitHub (Mar 21, 2022): using a project with spaces in the path works for me, can you provide a workflow / repository to reproduce the issue? it would be good if you could fill out the issue template, so we can reproduce the environment, too
Author
Owner

@ChristopherHX commented on GitHub (Mar 23, 2022):

This specfic issue has been fixed in https://github.com/nektos/act/releases/tag/v0.2.26.
By creating the script files in a container directory without spaces.

Could still cause problems if act starts supporting non container scenarios. Seems like we have a lack of test cases about the shell option of act, the action/runner might have similar problems.

<!-- gh-comment-id:1076141423 --> @ChristopherHX commented on GitHub (Mar 23, 2022): This specfic issue has been fixed in https://github.com/nektos/act/releases/tag/v0.2.26. By creating the script files in a container directory without spaces. Could still cause problems if act starts supporting non container scenarios. Seems like we have a lack of test cases about the `shell` option of act, the action/runner might have similar problems.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 23, 2022):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:1107057518 --> @github-actions[bot] commented on GitHub (Apr 23, 2022): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#607
No description provided.