]> git.madduck.net Git - code/myrepos.git/blobdiff - mr

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Skip comments before checking for control characters.
[code/myrepos.git] / mr
diff --git a/mr b/mr
index bdf0c3cc63aeb9302dd7c44934a61b3b77478176..22516a0fa60d134715b1231a08cf966a5f0ec572 100755 (executable)
--- a/mr
+++ b/mr
@@ -1325,11 +1325,12 @@ sub loadconfig {
        while (@lines) {
                $_=$nextline->();
 
        while (@lines) {
                $_=$nextline->();
 
+               next if /^\s*\#/ || /^\s*$/;
+
                if (! $trusted && /[[:cntrl:]]/) {
                        $trusterror->("illegal control character");
                }
 
                if (! $trusted && /[[:cntrl:]]/) {
                        $trusterror->("illegal control character");
                }
 
-               next if /^\s*\#/ || /^\s*$/;
                if (/^\[([^\]]*)\]\s*$/) {
                        $section=$1;
 
                if (/^\[([^\]]*)\]\s*$/) {
                        $section=$1;
 
@@ -2089,7 +2090,7 @@ help =
                SHOWMANFILE="man"
                ;;
                *)
                SHOWMANFILE="man"
                ;;
                *)
-               SHOWMANFILE="man -l"
+               SHOWMANFILE="man"
                ;;
        esac
        if [ ! -e "$MR_PATH" ]; then
                ;;
        esac
        if [ ! -e "$MR_PATH" ]; then