summaryrefslogtreecommitdiff
path: root/misc/orca/patches/patch-aa
blob: 340b3ef8c162a18ad4a7dc84217dde8bab07d811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$NetBSD: patch-aa,v 1.1.1.1 2007/07/17 19:03:16 drochner Exp $

--- src/orca/orca.in.orig	2007-04-09 21:59:57.000000000 +0200
+++ src/orca/orca.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Orca
 #
@@ -30,7 +30,7 @@
 
 # Set the user's $PATH for this script.
 #
-export PATH="/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/X11R6/bin"
+#export PATH="/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/X11R6/bin"
 
 # If you set RUNONCE to "true", then this will just run Orca once and quit.
 #
@@ -238,7 +238,7 @@ if [ "x$RUNONCE" = "xfalse" -a "x$ARGS" 
 then
     main
 else
-    if [ `grep -c "\-q" <<< $ARGS` -gt 0 ]
+    if [ `echo $ARGS | grep -c "\-q"` -gt 0 ]
     then
         cleanup
     else
@@ -250,7 +250,7 @@ else
         # erroneously types an illegal command line argument, the
         # help text is emitted and the other orca is not killed.
         #
-        if [ `egrep -c "\-s|\-g|\-t|\-n|\-u|\-e|\-d" <<< $ARGS` -eq 0 ]
+        if [ `echo $ARGS | egrep -c "\-s|\-g|\-t|\-n|\-u|\-e|\-d"` -eq 0 ]
         then
             runOrca "NO_CLEANUP"
         else