# GenerateProjectFiles fails if space in path. \[Linux\]

**URL:** <https://forums.unrealengine.com/t/generateprojectfiles-fails-if-space-in-path-linux/372462>\
**Category:** Platform & Builds\
**Tags:** generateprojectfiles, unreal-engine, bug-report, question\
**Created:** [October 4, 2016, 11:00pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-if-space-in-path-linux/372462 "2016-10-04T23:00:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4efcd70](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4efcd70](https://forums.unrealengine.com/u/anonymous_user_d4efcd70)\
**Post date:** [October 4, 2016, 11:00pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-if-space-in-path-linux/372462/1 "2016-10-04T23:00:10Z")

</div>

If there’s a space in the path it looks like when the UnrealHeaderTool gets called it doesn’t preserve quotes.

example command:

```
./GenerateProjectFiles.sh -project="'/home//Documents/Unreal Projects/Dialogues/Dialogues.uproject'" -game -engine

```

I tried including a `\ ` after `Unreal` with no success.

UHT only follows the path till Documents.

---

<div class="post-metadata">

**Author:** ![Speckulous](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Speckulous](https://forums.unrealengine.com/u/Speckulous)\
**Post date:** [October 6, 2016, 1:21pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-if-space-in-path-linux/372462/2 "2016-10-06T13:21:34Z")

</div>

Empty Spaces on Unix are #Q§X!!!  
You could just type ./GenerateProjectFiles.sh  
that is enough, this’ll download the dependecies in your gameengine folder.

Or you can just rename the directory to Unreal\_Projects like I did

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4efcd70](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4efcd70](https://forums.unrealengine.com/u/anonymous_user_d4efcd70)\
**Post date:** [October 6, 2016, 6:11pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-if-space-in-path-linux/372462/3 "2016-10-06T18:11:50Z")

</div>

Oh, I do stuff like that. It’s still a bug since those paths should be wrapped with quotes to preserve the spaces.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [November 7, 2016, 8:46pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-if-space-in-path-linux/372462/4 "2016-11-07T20:46:31Z")

</div>

Hey -

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here [Unreal Engine Issues and Bug Tracker (UE-38334)](https://issues.unrealengine.com/issue/UE-38334) . You can track the report’s status as the issue is reviewed by our development staff.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e3ffbe21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e3ffbe21](https://forums.unrealengine.com/u/anonymous_user_e3ffbe21)\
**Post date:** [April 8, 2018, 6:07pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-if-space-in-path-linux/372462/5 "2018-04-08T18:07:22Z")

</div>

For me the fix was to change the file GenerateProjectFiles.sh and add a pair of missing quotation marks:

```
diff --git a/GenerateProjectFiles.sh b/GenerateProjectFiles.sh
index d744d1e2a..f094bc3a6 100755
--- a/GenerateProjectFiles.sh
+++ b/GenerateProjectFiles.sh
@@ -25,5 +25,5 @@ if ["$(uname)" = "Darwin"]; then
 else
     # assume (GNU/)Linux
        cd Engine/Build/BatchFiles/Linux
- bash ./GenerateProjectFiles.sh $@
+ bash ./GenerateProjectFiles.sh "$@"
 fi

```
