[Top][All Lists]

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

Re: shell command output question

From: Noel Yap
Subject: Re: shell command output question
Date: Wed, 24 Apr 2002 19:50:14 -0700 (PDT)

--- Niklas Morberg <> wrote:
> Noel Yap <> writes:
> > I would like to have the following in my .emacs:
> >   (setq load-path (cons STUFF load-path))
> >
> > where STUFF is the output of a command line.  Does
> > anyone know how I would be able to do this?
> shell-command-to-string might be your friend. Does
> this work?
> (setq load-path (cons (shell-command-to-string
>                      "your_command") load-path))

It sort of does.  I just need to strip off the CR at
the end.  Would you happen to know how I can do that?


Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more

reply via email to

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