главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shpakovsky <alexey@shpakovsky.ru>2014-03-19 23:05:11 +0100
committerAlexey Shpakovsky <alexey@shpakovsky.ru>2014-03-19 23:05:11 +0100
commit22912381206ded2165a5de0a5ff7d9d073246155 (patch)
tree02570ca376ba5ebb6bf9304b5bae02dba2b9ea29
parentdaf456b9560be7a01cbc57b03fc800dfbad1a452 (diff)
preserve backslashes when posting/editing
ask "read" not to process backslash sequences when reading user-edited file and leave them as is, instead
-rwxr-xr-xbb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bb.sh b/bb.sh
index 470b5e1..cda88f9 100755
--- a/bb.sh
+++ b/bb.sh
@@ -496,7 +496,7 @@ create_html_page() {
parse_file() {
# Read for the title and check that the filename is ok
title=""
- while IFS='' read line; do
+ while IFS='' read -r line; do
if [[ "$title" == "" ]]; then
# set title and
# remove extra <p> and </p> added by markdown