summaryrefslogtreecommitdiff
path: root/app/xterm/plink.sh
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2021-02-14 09:14:08 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2021-02-14 09:14:08 +0000
commit5bae5b4bcfc56ef97ffa66e6b51d6d5991ee344b (patch)
tree7f41d9adade70820794daa5bbe623903a9762950 /app/xterm/plink.sh
parent1425773e06820b5d54b3bd358bdcb725d9ba8d68 (diff)
Update to xterm 366. tested by jsg@
Diffstat (limited to 'app/xterm/plink.sh')
-rw-r--r--app/xterm/plink.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/xterm/plink.sh b/app/xterm/plink.sh
index ea7e268ed..f526ce74c 100644
--- a/app/xterm/plink.sh
+++ b/app/xterm/plink.sh
@@ -1,9 +1,9 @@
#!/bin/sh
-# $XTermId: plink.sh,v 1.10 2013/07/07 01:20:48 tom Exp $
+# $XTermId: plink.sh,v 1.12 2021/01/27 00:18:09 tom Exp $
# -----------------------------------------------------------------------------
# this file is part of xterm
#
-# Copyright 2001-2010,2013 by Thomas E. Dickey
+# Copyright 2001-2013,2021 by Thomas E. Dickey
#
# All Rights Reserved
#
@@ -41,9 +41,9 @@ do
then
ASNEED=yes
OPT=-Wl,-as-needed
- if ( eval $LINKIT $OPT $* >/dev/null 2>/dev/null )
+ if ( eval $LINKIT $OPT "$@" >/dev/null 2>/dev/null )
then
- WARNED=`eval $LINKIT $OPT $* 2>&1`
+ WARNED=`eval $LINKIT $OPT "$@" 2>&1`
case ".$WARNED" in
*Warning*|*nsupported*|*nrecognized*|*nknown*)
;;
@@ -60,11 +60,12 @@ do
case $OPT in
-k*)
OPT=`echo "$OPT" | sed -e 's/^-k/-l/'`
+ echo "always use $OPT (cannot test if needed)"
LINKIT="$LINKIT $OPT"
;;
-l*)
echo "testing if $OPT is needed"
- if ( eval $LINKIT $* >/dev/null 2>/dev/null )
+ if ( eval $LINKIT "$@" >/dev/null 2>/dev/null )
then
: echo ...no
else