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

Can't work with Home path which includes a space #95

Closed
Hs-Yeah opened this issue Dec 2, 2014 · 7 comments
Closed

Can't work with Home path which includes a space #95

Hs-Yeah opened this issue Dec 2, 2014 · 7 comments

Comments

@Hs-Yeah
Copy link

Hs-Yeah commented Dec 2, 2014

My Home directory is not on / but on "/Volumes/Mac Data", so the path of my Home directory includes a space. When I ran ssdtPRGen.sh (v15.2), I encountered a problem:

Error 6092 - Could not open file "/Volumes/Mac" (No such file or directory)

@Piker-Alpha
Copy link
Owner

Can you please check this script change for me:

-gHome=$(echo $HOME)
+gHome=$(echo $HOME | sed 's/ /\\ /g')

That will change spaces to "\ ". Does that work for you?

@Hs-Yeah
Copy link
Author

Hs-Yeah commented Dec 5, 2014

I think it worked in some place of the script, but not all the script.

Here's the excerpts of the output:

ssdtPRGen.sh: line 1976: /Volumes/Mac\ Data/Yeah/Library/ssdtPRGen/dsdt.dat: Permission denied
xxd: /Volumes/Mac\ Data/Yeah/Library/ssdtPRGen/DSDT.aml: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
sed: 1: "s/^[\n]*
Warning
Usin ...": unterminated substitute pattern

......

Error 6092 - Could not open file "/Volumes/Mac/" (No such file or directory)
ssdtPRGen.sh: line 4010: [: /Volumes/Mac: binary operator expected

@Piker-Alpha
Copy link
Owner

Ok so we should change:

-gSsdtPR="{gPath}/${gSsdtID}.dsl"
+gSsdtPR=$(echo "${gPath}/${gSsdtID}.dsl" | sed 's/ /\\ /g')

and possibly this line as well:

-gHome=$(echo $HOME)
+gHome=$(echo "$HOME")

Does that work?

@Hs-Yeah
Copy link
Author

Hs-Yeah commented Dec 6, 2014

It seems the same:

egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
egrep: /Volumes/Mac: No such file or directory
ACPI Processor {} Declaration(s) found in DSDT
sed: 1: "s/^[\n]*
Warning
Usin ...": unterminated substitute pattern

......

Error 6092 - Could not open file "/Volumes/Mac/" (No such file or directory)
ssdtPRGen.sh: line 4010: [: /Volumes/Mac: binary operator expected

I think more tricks are needed to deal with the path.

@Piker-Alpha
Copy link
Owner

Ok. Let me setup a home directory on a second partition and fix this for the next update.

This should be fixed in v15.5 (now available for download).

@Piker-Alpha
Copy link
Owner

Can you please confirm that this has been fixed? Or not of course ;)

You may close this issue afterwards. Thank you!

@Hs-Yeah
Copy link
Author

Hs-Yeah commented Dec 13, 2014

It works! Thanks, Pike.

@Hs-Yeah Hs-Yeah closed this as completed Dec 13, 2014
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

2 participants