diff options
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" "#" $@ |