[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ed] "red" doesn't restrict like "ed -r"

From: Tim Chase
Subject: Re: [Bug-ed] "red" doesn't restrict like "ed -r"
Date: Sat, 17 Jan 2015 20:26:31 -0600

On 2015-01-17 17:16, Alexander Jones wrote:
> On Saturday, January 17, 2015 16:33:31 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'
> I think the issue is in the Debian packaging. In the ed source
> distribution, red is built as a shell script executing "ed
> --restricted". The Debian package must be setting /usr/bin/red as a
> symlink to /bin/ed instead of installing the built shell script to
> that location.

Ah, that would make sense.  Some further digging in the source
history suggests that ed(1) v1.4 and prior recognized "restricted"
based on argv[0] while v1.5 changed to using the shell-script and a
"-r" parameter.  Debian is still using the symlink method which
matches what you describe.  I've filed a bug with Debian[1] to have
them use the red shell-script instead of using a symlink.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]