summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions b/functions
index 2a7cfa3..58536cf 100644
--- a/functions
+++ b/functions
@@ -49,6 +49,7 @@ function enableoraddlines() {
# File to tweak
file="$1"; shift
# Word number in line to search for and replace if found
+ # FIXME: This is broken - wordno unconditionally becomes firstword later on
wordno="$1"; shift
[ -e "$file" ] || touch "$file"
for line; do
@@ -70,6 +71,7 @@ function preserveandaddlines() {
# Extension of backup file
ext="$1"; shift
# Word number in line to search for and replace if found
+ # FIXME: This is broken - wordno unconditionally becomes firstword later on
wordno="$1"; shift
preserveolderfile "$file" "$ext"
# enableoraddlines "$file" "$wordno" $@
@@ -94,6 +96,7 @@ function preserveandhashdisablelines() {
# Extension of backup file
ext="$1"; shift
# Word number in line to search for and replace if found
+ # FIXME: This is broken - wordno unconditionally becomes firstword later on
wordno="$1"; shift
preserveolderfile "$file" "$ext"
# disablelines "$file" "$wordno" "#" $@