Table of Contents
The YaST-language YCP is a scripting language to be interpreted by the
YCP-engine (YCP interpreter) specially designed for
manipulation with a system configuration. Its syntax is very similar
to C programming language.
Because YCP can make use of the whole infrastructure that
YaST provides, the actions that can be accomplished with YCP are
very powerful.
YCP has the usual features of procedural languages and
some more, partially originating from the functional
programming paradigm:
Control structures like if/then/else, foreach-loops.
Compound data types like strings, lists and maps.
Function definition (procedures)
Variable scopes
Name spaces
Include files
UNIX command execution (via the YaST infrastructure)
On the following pages we will explore the YCP language definition and
find out how to use YCP to write “programs” that can be
executed by YaST.