Install Nano

ipkg update
ipkg install nano

nano /opt/etc/nanorc
uncomment the include line

Setup nano Fix bad regex error message

nano fix_bad_regex.sh

#!/bin/bash
NEW="\\\b"
DPATH="/opt/share/nano/*.nanorc"
BPATH="/opt/share/nano/"
[ ! -d $BPATH ] && mkdir -p $BPATH || :
for f in $DPATH
do
  if [ -f $f -a -r $f ]; then
    /bin/cp $f "$f.bak"
    sed -i "s/\\\</$NEW/g" "$f"
    sed -i "s/\\\>/$NEW/g" "$f"
   else
    echo "Error: Cannot read $f"
  fi
done

sh fix_bad_regex.sh

 

トラックバック

このブログ記事に対するトラックバックURL:

コメント & トラックバック

No comments yet.

Comment feed

コメントする

Smiley face

July 2024
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28293031