Skip to content

[BUG] Custom Commands Running Bash Scripts with "${file}" fail silently when file path contains a space and "Wait for Exit" is set to False. #2367

@PConrad-NI

Description

@PConrad-NI

Running the latest version of Fork on Win 11.

I have a simple custom file command set up as a bash script...

echo "${file}" > /c/temp/debug.txt 2>&1

image

image

I'm currently working out of a .fork directory and I have the following setup.

image

If Wait for Exit is checked, running my custom command on any file yields proper expansion of ${file}

Debug file contents A: .fork/no-space-test/baz.txt
Debug file contents B: .fork/space test/bar.txt

If Wait for Exit is not checked, running my custom command on any file with a path that has spaces will NOT yield proper expansion of ${file} and the script just dies silently without doing anything.

Debug file contents A: .fork/no-space-test/baz.txt
Debug file contents B: !!! FILE IS NOT CREATED !!!

(This bug was very difficult for me to track down. I was interested in it because I was trying to find a way to get around some other issues such as trying to launch a script silently.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions