Skip to content

Commit 79a5576

Browse files
author
Tom O'Hara
committed
uses perl- to invoke scripts to avoid old /usr/bin/env issue; todo notes on more purging
1 parent 7148362 commit 79a5576

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

do_setup.bash

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,8 @@ if [ "$modern_grep" = 1 ]; then skip_dirs="-d skip"; fi
792792
## function gr-h () { gr "$@" *.h; }
793793
## function gr-h- () { gr- "$@" *.h; }
794794

795-
function gr-bib () { perlgrep.perl -i -para "$@" *.bib; }
796-
function gr-biblio () { perlgrep.perl -i -para "$@" *bib*.ascii; }
795+
function gr-bib () { perl- perlgrep.perl -i -para "$@" *.bib; }
796+
function gr-biblio () { perl- perlgrep.perl -i -para "$@" *bib*.ascii; }
797797

798798
## OLD
799799
## # Searching for files
@@ -1239,6 +1239,7 @@ function summarize-mail- () { $GREP -h "^((From)|(Subject)|(Date)):" "$@" | $PAG
12391239
# -b ignore changes in amount of white space
12401240
# -B ignore changes that just insert or delete blank lines
12411241
if [ "$INCLUDE_MISC_ALIASES" = "1" ]; then
1242+
## TODO2: remove cvs aliases already!
12421243
trace CVS stuff
12431244
#
12441245
function cvs- () { cvs "$@" >| /tmp/cvs_.$$ 2>&1; $PAGER /tmp/cvs_.$$; }
@@ -1253,10 +1254,10 @@ if [ "$INCLUDE_MISC_ALIASES" = "1" ]; then
12531254
alias cvs-update='cvs-filtered "^cvs update" update -d'
12541255
alias cvs-update-latest='cvs-filtered "^cvs update" update -A'
12551256
alias cvs-examine='cvs-filtered "^cvs update" -n update -d'
1256-
alias cvs-modified='cvs- status | $GREP Modified | extract_matches.perl "File: (\S+)" | echoize'
1257+
alias cvs-modified='cvs- status | $GREP Modified | perl- extract_matches.perl "File: (\S+)" | echoize'
12571258
alias cvs-modules='cvs checkout -c'
12581259
alias cvs-annotate='cvs- annotate'
1259-
alias cvs-extract-all='extract_all_versions.perl -cvs'
1260+
alias cvs-extract-all='perl- extract_all_versions.perl -cvs'
12601261
#
12611262
# cvs-update-all: performs 'cvs update' grepping for conflicts and changes
12621263
#
@@ -1272,6 +1273,7 @@ fi
12721273

12731274
# RCS stuff
12741275
if [ "$INCLUDE_MISC_ALIASES" = "1" ]; then
1276+
## TODO2: remove rcs aliases already!
12751277
# alias get 'co'
12761278
function get () { co -M "$@"; }
12771279
function get-read-only () { co -p "$@"; }
@@ -1529,17 +1531,17 @@ alias spanish='spanish-lookup'
15291531
alias sp=spanish
15301532
## TODO: reword sp- to sp-loose
15311533
alias sp-=spanish-
1532-
alias pp-spanish='pp_spanish_entry.perl'
1534+
alias pp-spanish='perl- pp_spanish_entry.perl'
15331535
## TODO: reword sp-pp- to sp-pp-aux
15341536
function sp-pp- () { sp $@ | pp-spanish; }
15351537
function sp-pp-loose () { sp- $@ | pp-spanish; }
15361538
function sp-pp () { sp-pp- $1 >| $1.pp; $PAGER $1.pp; }
15371539

1538-
function spanish-trans-phrase () { phrase=$1; shift; echo "$phrase" | $multiling_dir/Spanish/qd_trans_spanish.perl "$@" -; }
1540+
function spanish-trans-phrase () { phrase=$1; shift; echo "$phrase" | perl- $multiling_dir/Spanish/qd_trans_spanish.perl "$@" -; }
15391541
alias trans-spanish-phrase='spanish-trans-phrase'
1540-
alias trans-sp='qd_trans_spanish.perl -maxlen=256 -redirect -'
1542+
alias trans-sp='perl- qd_trans_spanish.perl -maxlen=256 -redirect -'
15411543
alias qd-trans-sp='trans-sp'
1542-
alias old-qd-trans-sp='qd_trans_spanish.perl -redirect -'
1544+
alias old-qd-trans-sp='perl- qd_trans_spanish.perl -redirect -'
15431545

15441546
# Unicode support
15451547
#

0 commit comments

Comments
 (0)