[Gllug] ed vs emacs/vi, was: ed vs emacs, was: OpenMoko Neo Freerunner

Harry Rickards hrickards at l33tmyst.com
Sun May 10 10:12:18 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/10/09 11:09, Bruce Richardson wrote:
> On Sun, May 10, 2009 at 11:01:10AM +0100, James wrote:
>> On 10 May 2009, at 09:11, Bruce Richardson wrote:
>>
>>> And sometimes there's a reason why none of them are available, like  
>>> the
>>> one Alain mentioned or something simpler and harser, like them all  
>>> being
>>> somewhere in /usr and that partition having been unmounted.
>> That's why the FHS says your mount command should be in /bin.
> 
> I'm assuming that /usr can't be mounted because of a problem that
> requires some work to fix.  If you need to be editing files to fix it,
> you are now stuck because the editors you are familiar with are all on
> that partition.
> 
>>> Most Linuxes do not install anything that provides /bin/vi by  
>>> default, so at
>>> this point ed and sed are what you are stuck with.
>> Personal experience of Linuxes says they always come with either vi or  
>> nano. Even debian.
> 
> I specified '/bin/vi'.  If you look at the standard packages that
> provide vi or vim (or even nano), they all place the binary in /usr/bin
> and so are no use in a rescue situation where /usr may not be available.
> There are packages you can install to provide an editor in /bin (in
> Debian, look for the elvis-tiny package) but if you have not taken this
> precaution then you are now limited to ed and sed.
> 
>> I may choose to install emacs instead, but the point is you always  
>> have *something*.
> 
> I think you should read with more care before commenting.
> 
> 
I agree that people should learn to use either ed or echo, but isn't
there a vi clone in BusyBox, which IMHO everyone should have installed.
I don't know where the default location is, but for me BusyBox is
installed in /bin/busybox.

- -- 
Many thanks
Harry Rickards

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/GCM/GCS/GCC/GIT/GM d? s: a? C++++ UL++++ P- L+++ E--- W+++ N o K+
w--- O- M- V- PS+  PE Y+ PGP++ t 5 X R tv-- b+++ DI D---- G e* h! !r y?
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoGqIIACgkQ1kZz3mRu0GqiTgCaAjNcrqc3XVT21j0leR7JKZw4
v8gAnRdnkP7TDI+R0mwMBfw5y14ZBrLb
=51tY
-----END PGP SIGNATURE-----
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list