Appending '\0' to commandfile so subsequent writes don't get screwed up.

This commit is contained in:
Bruce Hill 2019-10-03 13:24:52 -07:00
parent 3de5a5108f
commit e364995dcd

View File

@ -29,3 +29,4 @@ elif [ -e "$sysconfdir/xdg/bb/bindings.bb" ]; then
elif [ -e bindings.bb ]; then
cat bindings.bb
fi | sed -e '/^#/d' -e "s/^[^ ]/$(printf '\034')+bind:\\0/" | tr '\034' '\0' >> "$BBCMD"
printf '\0' >> "$BBCMD"