Progress..
This commit is contained in:
parent
2dda2e227d
commit
161a886e19
6 changed files with 196 additions and 127 deletions
|
|
@ -4,19 +4,19 @@ shopt -s extglob
|
|||
|
||||
exec {FD}<readline.ini
|
||||
|
||||
#key2value() {
|
||||
# # SECTION=
|
||||
# KEY="$1"
|
||||
#
|
||||
# if [[ "${VALUE:0:1}" =~ [\"\'] ]]; then
|
||||
# printf "%s" "${VALUE:1:-1}"
|
||||
# else
|
||||
# printf "%s" "$VALUE"
|
||||
# fi
|
||||
#}
|
||||
key2value() {
|
||||
KEY="$1"
|
||||
|
||||
if [[ "${VALUE:0:1}" =~ [\"\'] ]]; then
|
||||
printf "%s" "${VALUE:1:-1}"
|
||||
else
|
||||
printf "%s" "$VALUE"
|
||||
fi
|
||||
}
|
||||
|
||||
while :; do
|
||||
LINE=""
|
||||
# LINE=""
|
||||
unset LINE
|
||||
while :; do
|
||||
# The 'read' will remove leading whitespace from the line.
|
||||
read -r -u $FD REPLY || break 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue