[news at elke-joerg.de: Re: Why kdevelop uses single quotes in shell expressions?]

Andreas Pakulat apaku at gmx.de
Mon Jan 14 10:44:23 UTC 2008


Hi, 

just wanted to check wether there are any important reasons to use
single-quotes for mkdir and cd? Anybody knows of any problems with
double-quotes?

Andreas, who's not a sh-guru

----- Forwarded message from Jörg Becker <news at elke-joerg.de> -----

Envelope-to: andreas at localhost
Delivery-date: Fri, 11 Jan 2008 20:00:02 +0100
X-Flags: 0000
From: Jörg Becker <news at elke-joerg.de>
To: kdevelop at barney.cs.uni-potsdam.de
Subject: Re: Why kdevelop uses single quotes in shell expressions?
X-Virus-Scanned: amavisd-new at barney.cs.uni-potsdam.de
X-Mailman-Approved-At: Fri, 11 Jan 2008 19:46:50 +0100
X-BeenThere: kdevelop at barney.cs.uni-potsdam.de
X-Mailman-Version: 2.1.6
Reply-To: kdevelop at kdevelop.org
List-Id: KDevelop's users list <kdevelop.barney.cs.uni-potsdam.de>
List-Unsubscribe: <https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop>, 
	<mailto:kdevelop-request at barney.cs.uni-potsdam.de?subject=unsubscribe>
List-Archive: <https://barney.cs.uni-potsdam.de/mailman/private/kdevelop>
List-Post: <mailto:kdevelop at barney.cs.uni-potsdam.de>
List-Help: <mailto:kdevelop-request at barney.cs.uni-potsdam.de?subject=help>
List-Subscribe: <https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop>, 
	<mailto:kdevelop-request at barney.cs.uni-potsdam.de?subject=subscribe>
X-GMX-Antivirus: -1 (not scanned, may not use virus scanner)
X-GMX-Antispam: -2 (not scanned, spam filter disabled)
X-GMX-UID: kYKxdmVSYmYSBGIxl3c3LAZKWkZTQRQB
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.6

On Thursday, 10. January 2008 21:09:13 Andreas Pakulat wrote:
> Can you elaborate a bit when exactly those calls are done? I'm
> suspecting its when you build your project, but I can't quite see why
> there would be a mkdir call... 

I get the mkdir when I change the build directory from 
hardcoded '../../obj/Debug-x86_64-gcc4.2.1/Quarc-1.5.0' to the variable
'../../obj/Debug-$(uname -i)-gcc$(gcc -dumpversion)/Quarc-1.5.0' and answer 
the the 'Re-run configure for debug now?'-dialog with 'Rerun'.

Output:
mkdir '/home/joerg/projects/Quarc/trunk/Quarc/../../obj/Debug-$(uname -i)-gcc$(gcc -dumpversion)/Quarc-1.5.0' 
&& 
cd '/home/joerg/projects/Quarc/trunk/Quarc/../../obj/Debug-$(uname -i)-gcc$(gcc -dumpversion)/Quarc-1.5.0' 
&& fxConfigurationName="Debug" 
CXXFLAGS="-fno-inline -O0 -Wall -g3" "/home/joerg/projects/Quarc/trunk/Quarc/configure" --enable-debug=full --prefix=$_/../../.. --bindir=$_/../../../bin/Debug-$(uname -i)-gcc$(gcc -dumpversion) --libdir=$_/../../../binDebug-$(uname -i)-gcc$(gcc -dumpversion) --program-suffix=-1.5.0-Debug-$(uname -i)-gcc$(gcc -dumpversion)
mkdir: cannot create directory 
`/home/joerg/projects/Quarc/trunk/Quarc/../../obj/Debug-$(uname -i)-gcc$(gcc -dumpversion)/Quarc-1.5.0': 
No such file or directory
*** Exited with status: 1 ***

Building the project after changing the build directory also runs the automake 
tools and therefore exits with the same error message.



Executing the mkdir in shell I get:

mkdir '/home/joerg/projects/Quarc/trunk/Quarc/../../obj/Debug-$(uname -i)-gcc$(gcc -dumpversion)/Quarc-1.5.0'
mkdir: cannot create directory 
`/home/joerg/projects/Quarc/trunk/Quarc/../../obj/Debug-$(uname -i)-gcc$(gcc -dumpversion)/Quarc-1.5.0': 
No such file or directory

This is ok, because there is no 
subdir 'Debug-$(uname -i)-gcc$(gcc -dumpversion)'. But I want this expression 
to be expanded.


mkdir "/home/joerg/projects/Quarc/trunk/Quarc/../../obj/Debug-$(uname -i)-gcc$(gcc -dumpversion)/Quarc-1.5.0"
mkdir: cannot create directory 
`/home/joerg/projects/Quarc/trunk/Quarc/../../obj/Debug-x86_64-gcc4.2.1/Quarc-1.5.0': 
File exists

This is what I expect. The directory expression is expanded. It exists from 
previous build (with hardcoded build directory).


> Also please tell us which kind of project 
> you use, i.e. 
> language 
C++

> and buildsystem (autotools, qmake, custom  
> makefiles).
autotools

kdevelop 3.4.1

_______________________________________________
kdevelop mailing list
kdevelop at kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop


----- End forwarded message -----

-- 
Advancement in position.




More information about the KDevelop-devel mailing list