Re: How to move vi to /bin

2009-05-19 Thread Chris Rees
2009/5/14 Mel Flynn : > On Thursday 14 May 2009 12:38:30 Chris Rees wrote: >> 2009/5/13 Mel Flynn : >> > On Wednesday 13 May 2009 11:34:43 Michael Powell wrote: >> >> Kind of like how those coming over from a >> >> Linux environment all seem to want to change root's shell to bash, it >> >> serves n

Re: How to move vi to /bin

2009-05-15 Thread Michael Powell
Manish Jain wrote: > Mel Flynn wrote: >> On Wednesday 13 May 2009 09:21:46 manish jain wrote: >> >>> I want to move vi to /bin so that I have an editor available in >>> single-user mode. [snip] > > From all the discussion I have walked through on the issue of where to > place vi, it does appear

Re: How to move vi to /bin

2009-05-15 Thread Mel Flynn
On Friday 15 May 2009 08:46:46 Manish Jain wrote: > Mel Flynn wrote: > > On Wednesday 13 May 2009 09:21:46 manish jain wrote: > >> I want to move vi to /bin so that I have an editor available in > >> single-user mode. > > > > The only reason to need an editor and not have /usr and /var available is

Re: How to move vi to /bin

2009-05-15 Thread Chad Perrin
On Thu, May 14, 2009 at 10:03:58PM -0700, per...@pluto.rain.com wrote: > Chris Rees wrote: > > 2009/5/14 Chad Perrin : > > > On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote: > > >> I think the problem with that is he meant changing the root > > >> shell to /usr/local/bin/bash. You're be

Re: How to move vi to /bin

2009-05-15 Thread perryh
Manish Jain wrote: > From all the discussion I have walked through on the issue of > where to place vi, it does appear FreeBSD has a skewed policy > on the issue. There are plenty of reasons you might need access > an editor in single-user mode - editing fstab is just one. > Having to use the wor

Re: How to move vi to /bin

2009-05-15 Thread Matthew Seaman
Manish Jain wrote: Mel Flynn wrote: On Wednesday 13 May 2009 09:21:46 manish jain wrote: I want to move vi to /bin so that I have an editor available in single-user mode. The only reason to need an editor and not have /usr and /var available is to edit /etc/fstab. It is trivial to spot erro

Re: How to move vi to /bin

2009-05-14 Thread Manish Jain
Mel Flynn wrote: On Wednesday 13 May 2009 09:21:46 manish jain wrote: I want to move vi to /bin so that I have an editor available in single-user mode. The only reason to need an editor and not have /usr and /var available is to edit /etc/fstab. It is trivial to spot errors with /rescue/cat

Re: How to move vi to /bin

2009-05-14 Thread perryh
Chris Rees wrote: > 2009/5/14 Chad Perrin : > > On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote: > >> I think the problem with that is he meant changing the root > >> shell to /usr/local/bin/bash. You're better off using /bin/sh > >> if you want a Bourne-type shell, or using toor with >

Re: How to move vi to /bin

2009-05-14 Thread Polytropon
On Thu, 14 May 2009 20:13:02 +0200, Mel Flynn wrote: > sh is worse then csh. But sufficient for administration tasks in maintenance mode. It's not that you spend hours of dialog sessions in SUM. Remember: It's a worst case scenario. If everything fails, the /bin/sh still works, and it helps you

Re: How to move vi to /bin

2009-05-14 Thread Mel Flynn
On Wednesday 13 May 2009 09:21:46 manish jain wrote: > I want to move vi to /bin so that I have an editor available in > single-user mode. The only reason to need an editor and not have /usr and /var available is to edit /etc/fstab. It is trivial to spot errors with /rescue/cat and fix with /re

Re: How to move vi to /bin

2009-05-14 Thread Mel Flynn
On Thursday 14 May 2009 12:38:30 Chris Rees wrote: > 2009/5/13 Mel Flynn : > > On Wednesday 13 May 2009 11:34:43 Michael Powell wrote: > >> Kind of like how those coming over from a > >> Linux environment all seem to want to change root's shell to bash, it > >> serves no purpose except foot-shootin

Re: How to move vi to /bin

2009-05-14 Thread Chris Rees
2009/5/14 Chad Perrin : > On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote: >> 2009/5/13 Mel Flynn : >> > On Wednesday 13 May 2009 11:34:43 Michael Powell wrote: >> > >> >> Kind of like how those coming over from a >> >> Linux environment all seem to want to change root's shell to bash, i

Re: How to move vi to /bin

2009-05-14 Thread Chad Perrin
On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote: > 2009/5/13 Mel Flynn : > > On Wednesday 13 May 2009 11:34:43 Michael Powell wrote: > > > >> Kind of like how those coming over from a > >> Linux environment all seem to want to change root's shell to bash, it > >> serves no purpose except

Re: How to move vi to /bin

2009-05-14 Thread Chris Rees
2009/5/13 Mel Flynn : > On Wednesday 13 May 2009 11:34:43 Michael Powell wrote: > >> Kind of like how those coming over from a >> Linux environment all seem to want to change root's shell to bash, it >> serves no purpose except foot-shooting. > > - csh cannot redirect stderr seperately from stdout

Re: How to move vi to /bin

2009-05-13 Thread Polytropon
On Wed, 13 May 2009 05:34:43 -0400, Michael Powell wrote: > Yes - use the /rescue/vi as it has been statically compiled so it does not > rely on dynamic libraries which may not be available. The purpose here is > have a fallback position for repairing a damage/problem which may prevent a > succe

Re: How to move vi to /bin

2009-05-13 Thread Mel Flynn
On Wednesday 13 May 2009 11:34:43 Michael Powell wrote: > Kind of like how those coming over from a > Linux environment all seem to want to change root's shell to bash, it > serves no purpose except foot-shooting. - csh cannot redirect stderr seperately from stdout - on pipes the exit status from

Re: How to move vi to /bin

2009-05-13 Thread Michael Powell
Chris Rees wrote: >> On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote: >>> I want to move vi to /bin so that I have an editor available in >>> single-user mode. This sounds simple (and should be if all you have is >>> a single partition), but there are problems. For starters, terminfo >

Re: How to move vi to /bin

2009-05-13 Thread Jose Garcia Juanino
El miércoles 13 de mayo a las 09:21:46 CEST, manish jain escribió: > Hi, > > I want to move vi to /bin so that I have an editor available in > single-user mode. This sounds simple (and should be if all you have is > a single partition), but there are problems. For starters, terminfo > can't locate

Re: How to move vi to /bin

2009-05-13 Thread Chris Rees
> On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote: >> I want to move vi to /bin so that I have an editor available in >> single-user mode. This sounds simple (and should be if all you have is >> a single partition), but there are problems. For starters, terminfo >> can't locate its data

Re: How to move vi to /bin

2009-05-13 Thread Benjamin M. A'Lee
On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote: > I want to move vi to /bin so that I have an editor available in > single-user mode. This sounds simple (and should be if all you have is > a single partition), but there are problems. For starters, terminfo > can't locate its database i

Re: How to move vi to /bin

2009-05-13 Thread andrew clarke
On Wed 2009-05-13 12:51:46 UTC+0530, manish jain (invalid.poin...@gmail.com) wrote: > I want to move vi to /bin so that I have an editor available in > single-user mode. You may be able to use /rescue/vi. ___ freebsd-questions@freebsd.org mailing list

How to move vi to /bin

2009-05-13 Thread manish jain
Hi, I want to move vi to /bin so that I have an editor available in single-user mode. This sounds simple (and should be if all you have is a single partition), but there are problems. For starters, terminfo can't locate its database in single-user mode. Could anyone please tell me how to go about