[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "source" shell commands
From: |
Tassilo Horn |
Subject: |
Re: "source" shell commands |
Date: |
Sat, 24 Mar 2007 14:33:16 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux) |
Matthew Flaschen <matthew.flaschen@gatech.edu> writes:
> Is there an elisp function to "source" a shell file; i.e. an
> alternative to:
>
> (shell-command (concat "source \"" (expand-file-name "~/.rc") "\""))
Sure.
--8<---------------cut here---------------start------------->8---
(defun mf-source (file)
(interactive "f")
(shell-command (concat "source \"" file "\"")))
--8<---------------cut here---------------end--------------->8---
Regards,
Tassilo
--
VI VI VI - The Roman Number Of The Beast
- "source" shell commands, Matthew Flaschen, 2007/03/24
- Re: "source" shell commands,
Tassilo Horn <=
- Re: "source" shell commands, David Kastrup, 2007/03/24
- Re: "source" shell commands, Barry Margolin, 2007/03/24
- Re: "source" shell commands, Matthew Flaschen, 2007/03/24
- Re: "source" shell commands, Matthew Flaschen, 2007/03/24
- Re: "source" shell commands, Peter Dyballa, 2007/03/25
- Re: "source" shell commands, Matthew Flaschen, 2007/03/25
- Re: "source" shell commands, Peter Dyballa, 2007/03/25
- Re: "source" shell commands, Matthew Flaschen, 2007/03/25
- Re: "source" shell commands, Peter Dyballa, 2007/03/26
- Re: "source" shell commands, Matthew Flaschen, 2007/03/26