]> Sergey Matveev's repositories - public-inbox.git/commitdiff
avoid spaces after shell redirection operators
authorEric Wong <e@80x24.org>
Sat, 20 Aug 2016 00:25:16 +0000 (00:25 +0000)
committerEric Wong <e@80x24.org>
Sun, 21 Aug 2016 09:26:47 +0000 (09:26 +0000)
This makes us closer to git.git style (though I'm not quite sure
why we do this...)

Documentation/include.mk
Documentation/public-inbox-mda.pod
scripts/dc-dlvr
scripts/dc-dlvr.pre
scripts/report-spam

index 396a2585527188777417d08d8324dd9e0d7f3fdc..bd9df8c05900a9fd743d73162dd7dca0dbcc55b2 100644 (file)
@@ -52,7 +52,7 @@ all :: $(mantxt)
 Documentation/%.txt : Documentation/%.pod
        $(pod2text) $< $@+ && mv $@+ $@
 
-txt2pre = ./Documentation/txt2pre < $< > $@+ && touch -r $< $@+ && mv $@+ $@
+txt2pre = ./Documentation/txt2pre <$< >$@+ && touch -r $< $@+ && mv $@+ $@
 txt := INSTALL README COPYING TODO
 dtxt := design_notes.txt design_www.txt dc-dlvr-spam-flow.txt
 dtxt := $(addprefix Documentation/, $(dtxt)) $(mantxt)
@@ -67,7 +67,7 @@ html: $(docs_html)
 gz_docs := $(addsuffix .gz, $(docs) $(docs_html))
 rsync_docs := $(gz_docs) $(docs) $(txt) $(docs_html)
 %.gz: %
-       gzip -9 --rsyncable < $< > $@+
+       gzip -9 --rsyncable <$< >$@+
        touch -r $< $@+
        mv $@+ $@
 
index 62f87d6af4cd2445cf778ca354cb33fba717f502..18fcdd08b381b5f5c240e7db24b31ea2a580f8e2 100644 (file)
@@ -4,7 +4,7 @@ public-inbox-mda - mail delivery for public-inbox
 
 =head1 SYNOPSIS
 
-B<public-inbox-mda> E<lt> message
+B<public-inbox-mda> E<lt>MESSAGE
 
 =head1 DESCRIPTION
 
index a38760f590693fd7ae4af7a09e5fed42c7bbbbe1..81193b23e3d7e996899d4690e620784415a91509 100755 (executable)
@@ -57,14 +57,14 @@ err=$?
 set -e
 
 case $err in
-1) $DELIVER -m INBOX.spam < $TMPMSG ;;
+1) $DELIVER -m INBOX.spam <$TMPMSG ;;
 *)
        # users may override normal delivery and have it go elsewhere
        if test -r ~/.dc-dlvr.rc
        then
                . ~/.dc-dlvr.rc
        else
-               $DELIVER -m INBOX < $TMPMSG
+               $DELIVER -m INBOX <$TMPMSG
        fi
        ;;
 esac
index c10e80c7b6e2b2b8ab28a6325f1fc504bf87d1e8..d7bc1b5c8efb08f5bf0e6b19c231bb9734985a77 100644 (file)
@@ -5,7 +5,7 @@
 export PATH=/usr/local/bin:/usr/bin:/bin
 trap 'err=$?; set +e; test $err -eq 0 || rm -f $TMPMSG; exit $err' EXIT
 case $1,$CLIENT_ADDRESS in
-pispam,) exec public-inbox-learn spam < $TMPMSG ;;
-piham,) exec public-inbox-learn ham < $TMPMSG ;;
+pispam,) exec public-inbox-learn spam <$TMPMSG ;;
+piham,) exec public-inbox-learn ham <$TMPMSG ;;
 esac
-exec public-inbox-mda < $TMPMSG
+exec public-inbox-mda <$TMPMSG
index 0015ef0ba22fca00a2fc9bb3a12a3c20146a89e4..325f57183d2a14bb1365f45af1c949c246c79e22 100755 (executable)
@@ -32,14 +32,14 @@ PI_USER=pi
 
 case $1 in
 *[/.]spam/cur/*) # non-new messages in spam get trained
-       $DO_SENDMAIL $PI_USER+pispam < $1
-       exec $DO_SENDMAIL $USER+trainspam < $1
+       $DO_SENDMAIL $PI_USER+pispam <$1
+       exec $DO_SENDMAIL $USER+trainspam <$1
        ;;
 *:2,*S*) # otherwise, seen messages only
        case $1 in
        *:2,*T*) exit 0 ;; # ignore trashed messages
        esac
-       $DO_SENDMAIL $PI_USER+piham < $1
-       exec $DO_SENDMAIL $USER+trainham < $1
+       $DO_SENDMAIL $PI_USER+piham <$1
+       exec $DO_SENDMAIL $USER+trainham <$1
        ;;
 esac