|
From: | Antonio Diaz Diaz |
Subject: | Re: [Bug-ed] "red" doesn't restrict like "ed -r" |
Date: | Mon, 19 Jan 2015 13:28:43 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
Hello Tim, Tim Chase wrote:
$ uname -a Linux laptop 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux $ red --version | head -1 GNU Ed 1.6 $ file `which red` /usr/bin/red: symbolic link to `/bin/ed'
As Alexander has already pointed out, the issue is in the Debian packaging. It was fixed in version 1.9, but you are using an old version of ed.
'red' was made a shell script executing "ed --restricted" in version 1.5 (2010-08-30), following the GNU Coding Standards:
http://www.gnu.org/prep/standards/html_node/User-Interfaces.html#User-Interfaces"Please don't make the behavior of a utility depend on the name used to invoke it. It is useful sometimes to make a link to a utility with a different name, and that should not change what it does.
Instead, use a run time option or a compilation switch or both to select among the alternate behaviors. You can also build two versions of the program, with different names and different default behaviors."
Best regards, Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |