File: t2.ini

package info (click to toggle)
confget 5.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 736 kB
  • sloc: python: 1,017; ansic: 893; sh: 770; makefile: 142
file content (27 lines) | stat: -rw-r--r-- 1,086 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>
# SPDX-License-Identifier: CC0-1.0

# Just a test file.  Or something.

# Some configuration files are so simple, they do not even need sections.
# The confget utility uses the concept of a "default" section - the one
# that is used if the -s option is not specified.
# If any key/value pairs is found in the INI file before the first section
# header, they - and only they - are in the default section.
# If there are no key/value pairs before the section header, then the first
# section defined is considered to be the default.

# In this file, the following two pairs will be in the default section,
# and they may be obtained by "confget -f t2.ini key1 key2".
key1=1
key2=2

# In the t1.ini file, there are no key/value pairs before the first
# section header, so the first section - "a" - will be the default,
# and "confget -f t1.ini key1" would return "value1".

# The following values of key1 and key2 may only be obtained by specifying
# the section name: "confget -f t2.ini -s sec1 key1 key2".
[sec1]
key1=3
key2=4