Skip to content

Instantly share code, notes, and snippets.

@gardar
Last active February 1, 2022 19:03
Show Gist options
  • Save gardar/892d26ec4de0f7bace104deadff031d8 to your computer and use it in GitHub Desktop.
Save gardar/892d26ec4de0f7bace104deadff031d8 to your computer and use it in GitHub Desktop.
+ set -eEuo pipefail
+ shopt -s lastpipe
+ IFS='
'
+ export LC_COLLATE=C
+ LC_COLLATE=C
+ [[ -f ./aconfmgr ]]
+ xdg_config_home=/home/g/.config
+ config_dir=/home/g/.config/aconfmgr
+ tmp_dir=/tmp/aconfmgr-g
+ src_dir=/usr/lib/aconfmgr
+ source /usr/lib/aconfmgr/main.bash
++ aconfmgr_version=0.0.0
++ source /usr/lib/aconfmgr/common.bash
+++ PACMAN=pacman
+++ output_dir=/tmp/aconfmgr-g/output
+++ system_dir=/tmp/aconfmgr-g/system
+++ [[ 1000 == 0 ]]
+++ aur_dir=/tmp/aconfmgr-g/aur
+++ default_file_mode=644
+++ ANSI_clear_line=''
+++ ANSI_color_R=''
+++ ANSI_color_G=''
+++ ANSI_color_Y=''
+++ ANSI_color_B=''
+++ ANSI_color_M=''
+++ ANSI_color_C=''
+++ ANSI_color_W=''
+++ ANSI_reset=''
+++ verbose=0
+++ lint_config=false
+++ umask 22
+++ aconfmgr_action=
+++ aconfmgr_action_args=()
+++ ignore_paths=('/dev' '/home' '/media' '/mnt' '/proc' '/root' '/run' '/sys' '/tmp' '/var/cache')
+++ priority_files=(/etc/passwd /etc/group /etc/pacman.conf /etc/pacman.d/mirrorlist /etc/makepkg.conf)
+++ declare -A file_content_filters
+++ warn_size_threshold=10485760
+++ warn_file_count_threshold=1000
+++ warn_tmp_df_threshold=1048576
+++ makepkg_user=nobody
+++ skip_config=n
+++ skip_inspection=n
+++ skip_checksums=n
+++ typeset -A file_property_kind_exists
+++ pacman_opts=("$PACMAN")
+++ aurman_opts=(aurman)
+++ pacaur_opts=(pacaur)
+++ yaourt_opts=(yaourt)
+++ yay_opts=(yay)
+++ paru_opts=(paru)
+++ makepkg_opts=(makepkg)
+++ diff_opts=(diff '--color=auto')
+++ aur_helper=
+++ aur_helpers=(aurman pacaur yaourt yay paru makepkg)
+++ [[ 1000 == 0 ]]
+++ base_devel_installed=n
+++ prompt_mode=normal
+++ log_indent=:
+++ trap OnError EXIT ERR
+++ [[ 1000 == 0 ]]
+++ empty_array=()
+++ :
+++ :
++ source /usr/lib/aconfmgr/save.bash
+++ :
++ source /usr/lib/aconfmgr/apply.bash
+++ :
++ source /usr/lib/aconfmgr/check.bash
+++ :
++ source /usr/lib/aconfmgr/diff.bash
+++ :
++ source /usr/lib/aconfmgr/helpers.bash
+++ :
++ Main save
++ local color=
++ [[ 1 != 0 ]]
++ case "$1" in
++ [[ -n '' ]]
++ aconfmgr_action=save
++ shift
++ [[ save == diff ]]
++ [[ 0 != 0 ]]
++ case "$color" in
++ '[' -t 1 ']'
++ case "$aconfmgr_action" in
++ AconfSave
++ local config_save_target=/home/g/.config/aconfmgr/99-unsorted.sh
++ local modified=n
++ AconfCompile
++ LogEnter 'Collecting data...\n'
++ Log 'Collecting data...\n'
++ [[ 1 != 0 ]]
++ [[ -n Collecting data...\n ]]
++ local 'fmt=Collecting data...\n'
++ shift
++ [[ -z  ]]
++ printf '%s Collecting data...\n' :
: Collecting data...
++ log_indent=::
++ AconfCompileOutput
++ LogEnter 'Compiling user configuration...\n'
++ Log 'Compiling user configuration...\n'
++ [[ 1 != 0 ]]
++ [[ -n Compiling user configuration...\n ]]
++ local 'fmt=Compiling user configuration...\n'
++ shift
++ [[ -z  ]]
++ printf '%s Compiling user configuration...\n' ::
:: Compiling user configuration...
++ log_indent=:::
++ [[ n == y ]]
++ mkdir --mode=700 --parents /tmp/aconfmgr-g
++ rm -rf /tmp/aconfmgr-g/output
++ mkdir --parents /tmp/aconfmgr-g/output
++ mkdir /tmp/aconfmgr-g/output/files
++ touch /tmp/aconfmgr-g/output/packages.txt
++ touch /tmp/aconfmgr-g/output/foreign-packages.txt
++ touch /tmp/aconfmgr-g/output/file-props.txt
++ touch /tmp/aconfmgr-g/output/warnings
++ mkdir --parents /home/g/.config/aconfmgr
+++ Color C %q /home/g/.config/aconfmgr
+++ local var=ANSI_color_C
+++ printf -- %s ''
+++ shift
+++ printf -- %q /home/g/.config/aconfmgr
+++ printf -- %s ''
++ Log 'Using configuration in %s\n' '/home/g/.config/aconfmgr'
++ [[ 2 != 0 ]]
++ [[ -n Using configuration in %s\n ]]
++ local 'fmt=Using configuration in %s\n'
++ shift
++ [[ -z  ]]
++ printf '%s Using configuration in %s\n' ::: '/home/g/.config/aconfmgr'
::: Using configuration in /home/g/.config/aconfmgr
++ ignore_packages=()
++ typeset -ag ignore_packages
++ ignore_foreign_packages=()
++ typeset -ag ignore_foreign_packages
++ typeset -Ag used_files
++ local found=n
++ local file
++ for file in "$config_dir"/*.sh
++ [[ -e /home/g/.config/aconfmgr/*.sh ]]
++ false
++ [[ n == y ]]
++ LogLeave 'Done (configuration not found).\n'
++ [[ 1 == 0 ]]
++ Log 'Done (configuration not found).\n'
++ [[ 1 != 0 ]]
++ [[ -n Done (configuration not found).\n ]]
++ local 'fmt=Done (configuration not found).\n'
++ shift
++ [[ -z  ]]
++ printf '%s Done (configuration not found).\n' :::
::: Done (configuration not found).
++ log_indent=::
++ AconfCompileSystem
++ LogEnter 'Inspecting system state...\n'
++ Log 'Inspecting system state...\n'
++ [[ 1 != 0 ]]
++ [[ -n Inspecting system state...\n ]]
++ local 'fmt=Inspecting system state...\n'
++ shift
++ [[ -z  ]]
++ printf '%s Inspecting system state...\n' ::
:: Inspecting system state...
++ log_indent=:::
++ [[ n == y ]]
++ mkdir --mode=700 --parents /tmp/aconfmgr-g
++ rm -rf /tmp/aconfmgr-g/system
++ mkdir --parents /tmp/aconfmgr-g/system
++ mkdir /tmp/aconfmgr-g/system/files
++ touch /tmp/aconfmgr-g/system/file-props.txt
++ touch /tmp/aconfmgr-g/system/orig-file-props.txt
++ LogEnter 'Querying package list...\n'
++ Log 'Querying package list...\n'
++ [[ 1 != 0 ]]
++ [[ -n Querying package list...\n ]]
++ local 'fmt=Querying package list...\n'
++ shift
++ [[ -z  ]]
++ printf '%s Querying package list...\n' :::
::: Querying package list...
++ log_indent=::::
++ pacman --query --quiet --explicit --native
++ sort
++ grep -vFxf /dev/fd/63
+++ PrintArray ignore_packages
+++ local name=ignore_packages
+++ local size
++++ eval 'echo ${#ignore_packages[*]}'
+++++ echo 0
+++ size=0
+++ [[ 0 != 0 ]]
++ pacman --query --quiet --explicit --foreign
++ sort
++ grep -vFxf /dev/fd/63
+++ PrintArray ignore_foreign_packages
+++ local name=ignore_foreign_packages
+++ local size
++++ eval 'echo ${#ignore_foreign_packages[*]}'
+++++ echo 0
+++ size=0
+++ [[ 0 != 0 ]]
++ LogLeave
++ [[ 0 == 0 ]]
++ Log 'Done.\n'
++ [[ 1 != 0 ]]
++ [[ -n Done.\n ]]
++ local 'fmt=Done.\n'
++ shift
++ [[ -z  ]]
++ printf '%s Done.\n' ::::
:::: Done.
++ log_indent=:::
++ local -a found_files
++ found_files=()
++ local -A found_file_edited
++ found_file_edited=()
++ local -a ignore_args
++ AconfCreateFindIgnoreArgs ignore_args /dev /home /media /mnt /proc /root /run /sys /tmp /var/cache
++ local ignore_args_varname=ignore_args
++ local -n ignore_args_var=ignore_args
++ shift
++ ignore_paths=('/dev' '/home' '/media' '/mnt' '/proc' '/root' '/run' '/sys' '/tmp' '/var/cache')
++ local ignore_paths
++ simple_ignore_paths=()
++ local simple_ignore_paths
++ local ignore_path
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /dev =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /home =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /media =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /mnt =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /proc =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /root =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /run =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /sys =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /tmp =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ for ignore_path in "${ignore_paths[@]}"
++ [[ /var/cache =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]]
++ simple_ignore_paths+=("${ignore_path}")
++ '[' 10 -ne 0 ']'
++ local ignore_regexps
++ echo -n '/dev
/home
/media
/mnt
/proc
/root
/run
/sys
/tmp
/var/cache'
++ mapfile -t ignore_regexps
++ sed 's|[^*abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ ]|[&]|g; s|\*|.*|g'
++ ignore_args_var+=(-regex "$( IFS='|' ; echo "${ignore_regexps[*]}" )" -o)
+++ IFS='|'
+++ echo '/dev|/home|/media|/mnt|/proc|/root|/run|/sys|/tmp|/var/cache'
++ ignore_args_var+=(-false)
++ LogEnter 'Enumerating owned files...\n'
++ Log 'Enumerating owned files...\n'
++ [[ 1 != 0 ]]
++ [[ -n Enumerating owned files...\n ]]
++ local 'fmt=Enumerating owned files...\n'
++ shift
++ [[ -z  ]]
++ printf '%s Enumerating owned files...\n' :::
::: Enumerating owned files...
++ log_indent=::::
++ mkdir --parents /tmp/aconfmgr-g
++ pacman --query --list --quiet
++ sort --unique
++ sed 's#\/$##'
++ LogLeave
++ [[ 0 == 0 ]]
++ Log 'Done.\n'
++ [[ 1 != 0 ]]
++ [[ -n Done.\n ]]
++ local 'fmt=Done.\n'
++ shift
++ [[ -z  ]]
++ printf '%s Done.\n' ::::
:::: Done.
++ log_indent=:::
++ LogEnter 'Searching for stray files...\n'
++ Log 'Searching for stray files...\n'
++ [[ 1 != 0 ]]
++ [[ -n Searching for stray files...\n ]]
++ local 'fmt=Searching for stray files...\n'
++ shift
++ [[ -z  ]]
++ printf '%s Searching for stray files...\n' :::
::: Searching for stray files...
++ log_indent=::::
++ local line
++ local -Ag ignored_dirs
++ AconfNeedProgram gawk gawk n
++ local program=gawk
++ local package=gawk
++ local foreign=n
++ hash gawk
++ local progress_fd
++ exec
++ local stray_file_count=0
++ read -r -d '' line
+++ read -r -d '' line
+++ gawk '
BEGIN {
RS = "\0";
t = systime();
};
{
u = systime();
if (t != u) {
t = u;
printf "%s\0", $0;
system(""); # https://unix.stackexchange.com/a/83853/4830
}
}'
++ sudo find / -regextype posix-extended -not '(' '(' -regex '/dev|/home|/media|/mnt|/proc|/root|/run|/sys|/tmp|/var/cache' -o -false ')' -printf I -print0 -prune ')' -printf O -print0
++ tee /dev/fd/10
++ grep --null --null-data --invert-match --fixed-strings --line-regexp --file /dev/fd/63
+++ sed -e 's#^#O#'
++ true
+++ OnError
+++ trap '' EXIT ERR
++++ Color R 'Fatal error'
++++ local var=ANSI_color_R
++++ printf -- %s ''
++++ shift
++++ printf -- 'Fatal error'
++++ printf -- %s ''
+++ LogEnter '%s! Stack trace:\n' 'Fatal error'
+++ Log '%s! Stack trace:\n' 'Fatal error'
+++ [[ 2 != 0 ]]
+++ [[ -n %s! Stack trace:\n ]]
+++ local 'fmt=%s! Stack trace:\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s! Stack trace:\n' :::: 'Fatal error'
:::: Fatal error! Stack trace:
+++ log_indent=:::::
+++ local frame=0 str
++++ caller 0
+++ str='346 AconfCompileSystem /usr/lib/aconfmgr/common.bash'
+++ [[ 346 AconfCompileSystem /usr/lib/aconfmgr/common.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/common.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/common.bash
++++ printf -- %s ''
++++ Color G %q 346
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 346
++++ printf -- %s ''
++++ Color Y %q AconfCompileSystem
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q AconfCompileSystem
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/common.bash' '346' 'AconfCompileSystem'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/common.bash' '346' 'AconfCompileSystem'
::::: /usr/lib/aconfmgr/common.bash:346 [AconfCompileSystem]
+++ frame=1
++++ caller 1
+++ str='900 AconfCompile /usr/lib/aconfmgr/common.bash'
+++ [[ 900 AconfCompile /usr/lib/aconfmgr/common.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/common.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/common.bash
++++ printf -- %s ''
++++ Color G %q 900
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 900
++++ printf -- %s ''
++++ Color Y %q AconfCompile
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q AconfCompile
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/common.bash' '900' 'AconfCompile'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/common.bash' '900' 'AconfCompile'
::::: /usr/lib/aconfmgr/common.bash:900 [AconfCompile]
+++ frame=2
++++ caller 2
+++ str='9 AconfSave /usr/lib/aconfmgr/save.bash'
+++ [[ 9 AconfSave /usr/lib/aconfmgr/save.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/save.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/save.bash
++++ printf -- %s ''
++++ Color G %q 9
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 9
++++ printf -- %s ''
++++ Color Y %q AconfSave
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q AconfSave
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/save.bash' '9' 'AconfSave'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/save.bash' '9' 'AconfSave'
::::: /usr/lib/aconfmgr/save.bash:9 [AconfSave]
+++ frame=3
++++ caller 3
+++ str='185 Main /usr/lib/aconfmgr/main.bash'
+++ [[ 185 Main /usr/lib/aconfmgr/main.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/main.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/main.bash
++++ printf -- %s ''
++++ Color G %q 185
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 185
++++ printf -- %s ''
++++ Color Y %q Main
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q Main
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/main.bash' '185' 'Main'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/main.bash' '185' 'Main'
::::: /usr/lib/aconfmgr/main.bash:185 [Main]
+++ frame=4
++++ caller 4
+++ str='205 source /usr/lib/aconfmgr/main.bash'
+++ [[ 205 source /usr/lib/aconfmgr/main.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/main.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/main.bash
++++ printf -- %s ''
++++ Color G %q 205
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 205
++++ printf -- %s ''
++++ Color Y %q source
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q source
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/main.bash' '205' 'source'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/main.bash' '205' 'source'
::::: /usr/lib/aconfmgr/main.bash:205 [source]
+++ frame=5
++++ caller 5
+++ str='26 main /usr/bin/aconfmgr'
+++ [[ 26 main /usr/bin/aconfmgr =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/bin/aconfmgr
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/bin/aconfmgr
++++ printf -- %s ''
++++ Color G %q 26
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 26
++++ printf -- %s ''
++++ Color Y %q main
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q main
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/bin/aconfmgr' '26' 'main'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/bin/aconfmgr' '26' 'main'
::::: /usr/bin/aconfmgr:26 [main]
+++ frame=6
++++ caller 6
+++ str=
+++ LogLeave ''
+++ [[ 1 == 0 ]]
+++ Log ''
+++ [[ 1 != 0 ]]
+++ [[ -n '' ]]
+++ log_indent=::::
+++ [[ -d /tmp/aconfmgr-g ]]
+++ local df dir
++++ stat -f '--format=%a*%S' /tmp/aconfmgr-g
+++ df=17796825088
+++++ dirname /tmp/aconfmgr-g
++++ realpath /tmp
+++ dir=/tmp
+++ [[ 17796825088 -lt 1048576 ]]
+++ exit 1
+++ OnError
+++ trap '' EXIT ERR
++++ Color R 'Fatal error'
++++ local var=ANSI_color_R
++++ printf -- %s ''
++++ shift
++++ printf -- 'Fatal error'
++++ printf -- %s ''
+++ LogEnter '%s! Stack trace:\n' 'Fatal error'
+++ Log '%s! Stack trace:\n' 'Fatal error'
+++ [[ 2 != 0 ]]
+++ [[ -n %s! Stack trace:\n ]]
+++ local 'fmt=%s! Stack trace:\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s! Stack trace:\n' :::: 'Fatal error'
:::: Fatal error! Stack trace:
+++ log_indent=:::::
+++ local frame=0 str
++++ caller 0
+++ str='348 AconfCompileSystem /usr/lib/aconfmgr/common.bash'
+++ [[ 348 AconfCompileSystem /usr/lib/aconfmgr/common.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/common.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/common.bash
++++ printf -- %s ''
++++ Color G %q 348
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 348
++++ printf -- %s ''
++++ Color Y %q AconfCompileSystem
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q AconfCompileSystem
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/common.bash' '348' 'AconfCompileSystem'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/common.bash' '348' 'AconfCompileSystem'
::::: /usr/lib/aconfmgr/common.bash:348 [AconfCompileSystem]
+++ frame=1
++++ caller 1
+++ str='900 AconfCompile /usr/lib/aconfmgr/common.bash'
+++ [[ 900 AconfCompile /usr/lib/aconfmgr/common.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/common.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/common.bash
++++ printf -- %s ''
++++ Color G %q 900
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 900
++++ printf -- %s ''
++++ Color Y %q AconfCompile
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q AconfCompile
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/common.bash' '900' 'AconfCompile'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/common.bash' '900' 'AconfCompile'
::::: /usr/lib/aconfmgr/common.bash:900 [AconfCompile]
+++ frame=2
++++ caller 2
+++ str='9 AconfSave /usr/lib/aconfmgr/save.bash'
+++ [[ 9 AconfSave /usr/lib/aconfmgr/save.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/save.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/save.bash
++++ printf -- %s ''
++++ Color G %q 9
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 9
++++ printf -- %s ''
++++ Color Y %q AconfSave
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q AconfSave
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/save.bash' '9' 'AconfSave'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/save.bash' '9' 'AconfSave'
::::: /usr/lib/aconfmgr/save.bash:9 [AconfSave]
+++ frame=3
++++ caller 3
+++ str='185 Main /usr/lib/aconfmgr/main.bash'
+++ [[ 185 Main /usr/lib/aconfmgr/main.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/main.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/main.bash
++++ printf -- %s ''
++++ Color G %q 185
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 185
++++ printf -- %s ''
++++ Color Y %q Main
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q Main
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/main.bash' '185' 'Main'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/main.bash' '185' 'Main'
::::: /usr/lib/aconfmgr/main.bash:185 [Main]
+++ frame=4
++++ caller 4
+++ str='205 source /usr/lib/aconfmgr/main.bash'
+++ [[ 205 source /usr/lib/aconfmgr/main.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/lib/aconfmgr/main.bash
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/lib/aconfmgr/main.bash
++++ printf -- %s ''
++++ Color G %q 205
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 205
++++ printf -- %s ''
++++ Color Y %q source
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q source
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/lib/aconfmgr/main.bash' '205' 'source'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/lib/aconfmgr/main.bash' '205' 'source'
::::: /usr/lib/aconfmgr/main.bash:205 [source]
+++ frame=5
++++ caller 5
+++ str='26 main /usr/bin/aconfmgr'
+++ [[ 26 main /usr/bin/aconfmgr =~ ^([^ ]*) ([^ ]*) (.*)$ ]]
++++ Color C %q /usr/bin/aconfmgr
++++ local var=ANSI_color_C
++++ printf -- %s ''
++++ shift
++++ printf -- %q /usr/bin/aconfmgr
++++ printf -- %s ''
++++ Color G %q 26
++++ local var=ANSI_color_G
++++ printf -- %s ''
++++ shift
++++ printf -- %q 26
++++ printf -- %s ''
++++ Color Y %q main
++++ local var=ANSI_color_Y
++++ printf -- %s ''
++++ shift
++++ printf -- %q main
++++ printf -- %s ''
+++ Log '%s:%s [%s]\n' '/usr/bin/aconfmgr' '26' 'main'
+++ [[ 4 != 0 ]]
+++ [[ -n %s:%s [%s]\n ]]
+++ local 'fmt=%s:%s [%s]\n'
+++ shift
+++ [[ -z  ]]
+++ printf '%s %s:%s [%s]\n' ::::: '/usr/bin/aconfmgr' '26' 'main'
::::: /usr/bin/aconfmgr:26 [main]
+++ frame=6
++++ caller 6
+++ str=
+++ LogLeave ''
+++ [[ 1 == 0 ]]
+++ Log ''
+++ [[ 1 != 0 ]]
+++ [[ -n '' ]]
+++ log_indent=::::
+++ [[ -d /tmp/aconfmgr-g ]]
+++ local df dir
++++ stat -f '--format=%a*%S' /tmp/aconfmgr-g
+++ df=17796825088
+++++ dirname /tmp/aconfmgr-g
++++ realpath /tmp
+++ dir=/tmp
+++ [[ 17796825088 -lt 1048576 ]]
+++ exit 1
+++ local path=/opt/ApacheDirectoryS
+++ path=/opt
+++ [[ 4 -gt 40 ]]
++++ Color M %q /opt
++++ local var=ANSI_color_M
++++ printf -- %s ''
++++ shift
++++ printf -- %q /opt
++++ printf -- %s ''
+++ Log 'Scanning %s...\r' '/opt'
+++ [[ 2 != 0 ]]
+++ [[ -n Scanning %s...\r ]]
+++ local 'fmt=Scanning %s...\r'
+++ shift
+++ [[ -z  ]]
+++ printf '%s Scanning %s...\r' :::: '/opt'
:::: Scanning /opt...
+++ read -r -d '' line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment