You've already forked bash-ini-parser
mirror of
https://github.com/albfan/bash-ini-parser.git
synced 2025-08-09 05:22:44 +03:00
length=${#FUNCNAME/#cfg_section_;[*]}: bad substitution - solution
This commit is contained in:
committed by
Alberto Fanjul
parent
f444e64fee
commit
c59e84c66d
@@ -92,6 +92,7 @@ function cfg_writer {
|
||||
item="$(declare -f ${f})"
|
||||
item="${item##*\{}" # remove function definition
|
||||
item="${item##*FUNCNAME*$PREFIX\};}" # remove clear section
|
||||
item="${item/FUNCNAME\/#$PREFIX;}" # remove line
|
||||
item="${item/\}}" # remove function close
|
||||
item="${item%)*}" # remove everything after parenthesis
|
||||
item="${item});" # add close parenthesis
|
||||
|
Reference in New Issue
Block a user