Mailinglist Archive: opensuse (1355 mails)

< Previous Next >
Re: [opensuse] Baffled by shell script
  • From: Peter Suetterlin <pit@xxxxxxxxxxx>
  • Date: Sat, 23 Jun 2018 20:11:35 +0100
  • Message-id: <20180623191135.hgl5xkveneyaqimr@speedy>
Joseph Comfort wrote:
A script that has worked for many generations of openSuSE fails under the
LEAP 15 installation. The script ('ted') is located under /usr/local/bin.
It reads:

# Script for EDT look-alike ED v1.5.9


$eddsk/edc $eddsk/vt200.ed $eddsk/ed.setup 0 0 -1 -u $1 $2 $3 $4 $5 $6 $7

It is used for text editing. A command such as: 'ted filename' gives the
error message

/usr/local/bin/ted: line 7: /usr/local/ED-159/edc: No such file or

But the file exists. The command 'dir /usr/local/ED-159/edc' yields
-rwxr-xr-x 1 root root 214104 Sep 10 2006 /usr/local/ED-159/edc

The directory chain and permissions are as they need to be.

what type file is it? 'file /usr/local/ED-159/edc'
My guess is an unsupported binary type, or it's an script which is missing the
interpreter (like your script with '#!/bin/sh', when there is no /bin/sh)

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups