Skip to content

Commit

Permalink
v6.18
Browse files Browse the repository at this point in the history
+ DietPi-Globals | G_CONFIG_INJECT: Minor, inform about auto escaped forward slash
  • Loading branch information
MichaIng authored Nov 20, 2018
1 parent 471d0b5 commit beff8ec
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions dietpi/func/dietpi-globals
Original file line number Diff line number Diff line change
Expand Up @@ -2348,7 +2348,7 @@ $print_logfile_info
input="${input//\(/\\\(}"; input="${input//\{/\\\{}"; input="${input//^/\\^}"; input="${input//&/\\&}"; input="${input//$/\\$}"; input="${input//|/\\|}"
input="${input//\`/\\\`}"

echo -e "$input"
echo "$input"

}

Expand Down Expand Up @@ -2377,7 +2377,7 @@ $print_logfile_info
# Automatically opt in to DietPi-Survey and run + send benchmark + data
G_DEV_BENCH(){

sed -i "1s/.*/1/" /DietPi/dietpi/.dietpi-survey
sed -i '1s/.*/1/' /DietPi/dietpi/.dietpi-survey
G_USER_INPUTS=0 /DietPi/dietpi/func/dietpi-benchmark 2

}
Expand Down Expand Up @@ -2424,10 +2424,13 @@ into file \$3
$file
$after
NB:
- Within double quotes \"\", as usual, escape literally meant double quotes and dollar signs $ with leading backslash \.
- Within single quotes '', as usual, escape literally meant single quotes via: '\'' # End leading string; Add escaped single quote; Start trailing string
- Within double quotes \"\", as usual, escape literally meant double quotes and dollar signs \$ via:
\\\" respectively \\\$
- Within single quotes '', as usual, escape literally meant single quotes via:
'\'' # <End leading string>; <Add escaped single quote>; <Start trailing string>
- Additionally in case of extended regular expression support (\$1 and \$4), the following characters need to be escaped via backslash \, if wanted literally:
\ . + * ? [ ( { ^ & $ |"
\ . + * ? [ ( { ^ & $ |
- Do not escape forward slashes /, which will be done internally for all arguments!"

unset syntax_error

Expand Down

0 comments on commit beff8ec

Please sign in to comment.