I got this error: /usr/portage/eclass/linux-info.eclass: line 120: cd: /home/dieterv/dev/3: No such file or directory The directory is there but has a space right after the 3. Somehow I get the feeling something happens in the eclass that doesn't like spaces in directorynames... Reproducible: Always Steps to Reproduce: 1. 2. 3.
Uhm, using spaces in file/directory names is always a bad idea, and putting space at the *end* of file/directory name is the *worst* one really... Don't do this.
Uhm, I was only trying to help, but should have been more clear on this, so here goes: The directory name _contains_ spaces (lot's of them), but does not end with a space. It also contains lot's of "weird" characters not used in the English language... If I understand the code correctly: - line 112 stores the current directory into a variable - line 117 changes the current directory and - line 120 tries to restore the current directory to whatever was stored in line 112. If I understand Unix (and as far as I know Linux) file/directory names, they may not: - exceed 255 characters in length - include a forward slash (path name element seperator) - include a NULL character - be . and .. (reserved for current and parent dir) - maybe more I don't know about. Please share ;-) and as a consequense the following should be noted: - file/directory names may include spaces - file/directory names are case sensitive Anyway, adding quotes around the variables fixes this as can be seen in the included patch.
Created attachment 72338 [details, diff] pathnames.patch fixes this issue.
No objections to this at all. Thanks for the catch.