blob: 7390c8e4697807af4df39d69084024bdfb84e9de (
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
|
$NetBSD: patch-aa,v 1.2 2006/02/16 11:12:13 tonio Exp $
--- contrib/rpws.orig 2004-11-17 17:27:38.000000000 +0100
+++ contrib/rpws
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# Workspaces for ratpoison
# Copyright (C) 2003 Shawn Betts
@@ -80,7 +80,7 @@ ws_save ()
ws_restore ()
{
ws_save
- if [ $1 == 1 ]; then
+ if [ $1 = 1 ]; then
rp_call gselect default
else
rp_call gselect ws$1
@@ -108,9 +108,9 @@ if [ -z $@ ]; then
echo "$0 -b -- setup some key bindings"
echo "$0 <n> -- Switch to workspace n"
else
- if [ $1 == -i ]; then
+ if test $1 = -i ; then
ws_init
- elif [ $1 == -b ]; then
+ elif test $1 = -b ; then
ws_bindings
else
ws_restore $1
|