unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Golden <david.golden@oceanfree.net>
Subject: Re: How to PICK the CTRL-u argument from the file or some other method, with EXAMPLE
Date: Thu, 23 Sep 2004 23:50:23 +0100	[thread overview]
Message-ID: <PqI4d.31892$Z14.10693@news.indigo.ie> (raw)
In-Reply-To: 2rgvr7F1aej4cU1@uni-berlin.de

Chris F.A. Johnson wrote:

>> still waiting for a solution
> 
>     Still wondering why it was posted to comp.unix.shell.
> 

Heh. Remember it IS emacs, after all. It IS (or typically includes "out-of-box"
an implementation of) an sh-family shell called eshell. 

http://www.newartisans.com/johnw/eshell.html
"""
Eshell is a command shell implemented entirely in Emacs Lisp. It invokes no external 
processes beyond those requested by the user. It is intended to be a functional 
replacement for command shells such as bash, zsh, rc, 4dos; since Emacs itself is
capable of handling most of the tasks accomplished by such tools. 
"""


So, on your average linux install (okay for the pedants, linux is not unix exactly,
but emacs works on real unix too) one can do the following (tested, actual
copy+pastes from my system):

# adduser tryme
# chsh -s /usr/bin/emacs tryme
# su - tryme

File Edit Options Buffers Tools Help                                        
Welcome to GNU Emacs, one component of a Linux-based GNU system.
[*** snipped blurb]
----:---F1  *scratch*         (Lisp Interaction)--L1--All----------------------
For information about the GNU Project and its goals, type C-h C-p.

[*** Now type M-x eshell]

File Edit Options Buffers Tools Help
Welcome to the Emacs shell

~ $ cd /usr
/usr $ ls
X11R6  bin  doc  games  include  info  lib  local  sbin  share  src
/usr $ echo $SHELL
/usr/bin/emacs
/usr $ echo $TERM
xterm
/usr $ 

----:---F1  *eshell*          (EShell)--L11--All-------------------------------

  reply	other threads:[~2004-09-23 22:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23  1:05 How to PICK the CTRL-u argument from the file or some other method, with EXAMPLE Jose Cuthberto
2004-09-23 22:02 ` Jose Cuthberto
2004-09-23 22:08   ` Chris F.A. Johnson
2004-09-23 22:50     ` David Golden [this message]
2004-09-23 23:42   ` Johan Ur Riise
2004-09-24  7:19   ` Joakim Hove
2004-09-24 18:46   ` Greg Hill
2004-09-24 19:12     ` Greg Hill
  -- strict thread matches above, loose matches on Subject: below --
2004-09-23 17:01 JayBingham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='PqI4d.31892$Z14.10693@news.indigo.ie' \
    --to=david.golden@oceanfree.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).