[Top][All Lists]

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

Interactive string input and comparison

From: scm
Subject: Interactive string input and comparison
Date: 29 Jun 2006 12:58:56 -0700
User-agent: G2/0.2


I am trying to write an interactive Elisp program that will take the
input of a string, and depending what the string is, run a shell
command. I also what to have an error printed if the given shell
command does not exist. This is my attempt at the code so far:

(defun ls ()
  (prompt for input? variable?)
  (if (string-match "ls" ))
    (shell-command "ls -l)

Thanks in advance to anyone who can take the time to answer this

reply via email to

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