Zane C. Bowers-Hadley

NAME

zcset - Sets a value in a ZConf config.

SYNOPSIS

zcset [-s <set>] -c <config> -k <key> -v <value>

zcset [-s <set>] -c <config> -k <key> -f <file>

zcset [-s <set>] -c <config> -k <key> -K <second key> -v <value> -C

zcset [-s <set>] -c <config> -k <key> -K <second key> -f <file> -C

zcset [-s <set>] -c <config> -k <key> -K <second key> -v <value> -m

zcset [-s <set>] -c <config> -k <key> -K <second key> -f <file> -m

SWTICHES

-c <config>

This is the configuration to operate on.

-C

Operate on comments.

-f <file>

Reads the file into the variable. Either this or -v needs set.

-k <key>

This is the key to operate on.

-K <second key>

This is the key to operate on for comments or metas.

-m

Operate on metas.

-s <set>

The set to operate on. This is the only optional switch. If it is now defined, The choosen/default config will be used.

-v <value>

This is the value to set it to. Either this or -f needs used.

-S (0|1)

Set sysmode enable/disable.

EXIT CODES

Any exit code listed below is a ZConf error.

254

Improper switch usage.

AUTHOR

Copyright (c) 2009, Zame C. Bowers <vvelox@vvelox.net>

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice,
     this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS` OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Changelog

2009-11-22/6:00 1.0.0

Add meta and comment support.

2009-11-17/4:50 0.1.1

Fix the -f flag so it now works.

2009-07-08/1:00 0.1.0

Add sys mode.

2008-10-06/3:00 0.0.1

Misc. warning and POD cleanups.

2008-10-08/1:45 0.0.0

Initial release.

SCRIPT CATEGORIES

Desktop

OSNAMES

any

README

zcset - Sets a value in a ZConf config.