Home · Overviews · Reference · Classes codeless banner

shellQuote()

Usage

    FILENAME = "/home/qbuild/path with spaces/file.txt"
    foo.TYPE=RULE
    foo.commands="cat "$$shellQuote($$FILENAME)

Description

This function returns the passed parameters quoted suitably for passing to shell commands. This is not perfect as the QBuild parser will prevent passing certain items to the shell (such as the backslash character). You should use a literal command in order to pass such characters to the shell.

See also QBuild Functions, QBuild Script, and Rule Javascript Class Reference.


Copyright © 2009 Nokia
Qt Extended - QBuild Maintainer Guide