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

Kuba Ober kuba at mareimbrium.org
Wed Jan 16 15:01:28 UTC 2008


On Monday 14 January 2008, Andreas Pakulat wrote:
> 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

Double quotes allow variable substitution (at least), so if there's a "$" in 
the pathname you're gonna have problems. Names with "$" in them were very 
popular in DOS, for example.

Single quotes should be used whenever you don't want any expansions to be done 
(i.e. for the string to be treated verbatim).

Cheers, Kuba




More information about the KDevelop-devel mailing list