section. Without SECTION_NAME, it acts on a global unnamed
section. cedit is short for config edit.
--q Quiet
+-b Keep backup file
+-e Exit 0 on modified file.
-s Silent. Quiet and exit 0 on modified file.
+-q Quiet
-v Verbose
--b Keep backup file
-h|--help Help"
local s diff name init file_dir exists verbose backup quiet silent
file_dir="$(dirname "$file")"
backup=false
quiet=false
silent=false
+ exit_status=true
case $1 in
-b) backup=true; shift ;;
- -v) verbose=true; shift ;;
+ -e) exit_status=false; shift ;;
+ -s) quiet=true; silent=true; exit_status=false; shift ;;
-q) quiet=true; shift ;;
- -s) quiet=true; silent=true; shift ;;
+ -v) verbose=true; shift ;;
-h|--help) echo "$help"; return ;;
esac
if ! $backup && $exists; then
rm -r "$temp"
fi
- if $silent; then
+ if ! $exit_status; then
case $ret in
0|1) return 0 ;;
*) return $ret ;;