You are on page 1of 1

18/09/13

2.10. Data Type path

2.10. Data Type path Chapter 2. YCP Data Types

2.10. Data Type path


A path is something special to Y C Pand similar to paths in TCL. It is a sequence of path elements separated by dots. A path element can contain any characters except \ x 0 0 . If it contains something else than a z A Z 0 9 _ -it must be enclosed in double quotes. The root path, i.e. the root of the tree is denoted by a single dot. Paths can be used for multiple purposes. One of their main tasks is the selection of data from complex data structures like the SCR-tree (see Chapter 2, SCR Tree). The backslash in paths can be used to mark a special characters:

Representation Meaning
\ n \ t \ r \ b \ f \ xXX \ X New line (ASCII 10) Tabulator Carriage Return (ASCII 13) Backspace Form Feed ASCII character represented by the hexadecimal value XX. The character X itself.

Exam ple 2.8. Path constants . . 1 7 . e t c . f s t a b . " \ n H e l l o! \ n " . W o r l d . " \ x f f "= =. " \ x F F " . " \ x 4 1 "= =. " A " . " "! =.

2.9. Data Type map

2.11. Data Type term

doc.opensuse.org/projects/YaST/openSUSE11.3/tdg/id_ycp_data_path.html

1/1

You might also like