List Info

Thread: ok to add ex(1) to /rescue?




ok to add ex(1) to /rescue?
user name
2006-08-07 15:37:27
Hi, 

is it ok if I add ex(1) to /rescue ?  I prefer it over ed(1)
on screwed
terminals, and it doesn't use extra space since we already
have /rescue/vi
and ex is just "vi -e".  

	Geert
Index: rescue/list
============================================================
=======
RCS file: /cvsroot/src/rescue/list,v
retrieving revision 1.23
diff -u -r1.23 list
--- rescue/list	6 Dec 2005 14:02:58 -0000	1.23
+++ rescue/list	7 Aug 2006 15:20:52 -0000
 -128,7
+128,7 
 PROG	less		more
 SPECIAL	less		srcdir	usr.bin/less/less
 
-PROG	vi
+PROG	vi		ex
 SPECIAL vi        	srcdir  usr.bin/vi/build
 
 SRCDIRS	usr.sbin
Index: distrib/sets/lists/base/rescue.mi
============================================================
=======
RCS file: /cvsroot/src/distrib/sets/lists/base/rescue.mi,v
retrieving revision 1.17
diff -u -r1.17 rescue.mi
--- distrib/sets/lists/base/rescue.mi	6 Dec 2005 14:02:58
-0000	1.17
+++ distrib/sets/lists/base/rescue.mi	7 Aug 2006 15:20:52
-0000
 -28,6
+28,7 
 ./rescue/dump_lfs				base-rescue-root
 ./rescue/echo					base-rescue-root
 ./rescue/ed					base-rescue-root
+./rescue/ex					base-rescue-root
 ./rescue/expr					base-rescue-root
 ./rescue/fdisk					base-rescue-root
 ./rescue/fsck					base-rescue-root
ok to add ex(1) to /rescue?
user name
2006-08-07 15:42:46
On Mon, 7 Aug 2006, Geert Hendrickx wrote:
> is it ok if I add ex(1) to /rescue ?  I prefer it over
ed(1) on screwed
> terminals, and it doesn't use extra space since we
already have /rescue/vi
> and ex is just "vi -e".

FWIW, this can be done as link:

 	miyu% ln -s `which vi` ex
 	miyu% ./ex
 	/tmp/vi.25181b: new file: line 1
 	:


  - Hubert
ok to add ex(1) to /rescue?
user name
2006-08-07 15:53:42
On Mon, Aug 07, 2006 at 05:42:46PM +0200, Hubert Feyrer
wrote:
> On Mon, 7 Aug 2006, Geert Hendrickx wrote:
> >is it ok if I add ex(1) to /rescue ?  I prefer it
over ed(1) on screwed
> >terminals, and it doesn't use extra space since we
already have /rescue/vi
> >and ex is just "vi -e".
> 
> FWIW, this can be done as link:
> 
> 	miyu% ln -s `which vi` ex
> 	miyu% ./ex
> 	/tmp/vi.25181b: new file: line 1
> 	:

I know.  Only difference is that, in /rescue, it would be a
hardlink.   

	Geert
ok to add ex(1) to /rescue?
user name
2006-08-12 10:21:40
On Mon, Aug 07, 2006 at 05:42:46PM +0200, Hubert Feyrer
wrote:
> On Mon, 7 Aug 2006, Geert Hendrickx wrote:
> >is it ok if I add ex(1) to /rescue ?  I prefer it
over ed(1) on screwed
> >terminals, and it doesn't use extra space since we
already have /rescue/vi
> >and ex is just "vi -e".
> 
> FWIW, this can be done as link:
> 
> 	miyu% ln -s `which vi` ex
> 	miyu% ./ex
> 	/tmp/vi.25181b: new file: line 1
> 	:

Well, I tried it and it actually does *not* work, due to the
way crunchgen
works: 

# cd /rescue
# ln -s vi ex   (I tried both soft- and hardlinks)
# /rescue/ex
rescue: ex not compiled in
Usage: rescue <prog> <args> ..., where
<prog> is one of:
 cat chio chmod cp csh -csh date dd df domainname echo ed
expr hostname
 [...long list...]
# 

So, if we want ex(1) in /rescue, it has to be added to the
list.  Again, it
will differ only a few bytes since ex(1) *is* vi(1).  

Ok to commit?  

	Geert
ok to add ex(1) to /rescue?
user name
2006-08-12 22:22:01
On Sat, 12 Aug 2006, Geert Hendrickx wrote:
> Ok to commit?

Fine with *me*, but maybe ask core...


  - Hubert
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )