[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: red: simplify wrapper script
From: |
Antonio Diaz Diaz |
Subject: |
Re: red: simplify wrapper script |
Date: |
Wed, 22 Jun 2022 16:32:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
Hi Akbar,
Akbarkhon Variskhanov wrote:
Hi. The wrapper script for 'red' is unnecessarily complicated. Here is
a simplified version of it.
Thanks, but it seems that your simplified 'red' fails when $0 does not
contain a slash:
$ sh red.orig -V
GNU ed 1.18
[...]
$ sh red.new -V
red.new: line 2: /tmp/red.new/ed: Not a directory
red.new: line 2: exec: /tmp/red.new/ed: cannot execute: Not a directory
Best regards,
Antonio.