Re: a small SBCL question



d...@xxxxxxx wrote:
I tried the example above, with a wildcard, i.e. "/tmp/*.lisp" instead
of "/tmp/a.lisp",
and no files were found, and there are files matching the pattern.

Could someone explain why?

Because on UNIX traditionally wildcards are expanded by your shell, not
by, say, /bin/ls -- unlike MS-DOS, BTW. :) There are exceptions, of
course (scp knows about them, find...), but not ls.

You can try using "/bin/sh" for the command, (list "/bin/ls"
"/tmp/*.lisp") for its arguments.

Many thanks!

Welcome!

Cheers,
David

Paul B.

.



Relevant Pages

  • Re: idiom for file finding
    ... >> steve@xxxxxxxxxxxxxx (Steve Blinkhorn), ... >> SB> Suppose I want to search for files matching some pattern that I know ... exec sh -c $command_line ...
    (comp.lang.tcl)
  • idiom for file finding
    ... Suppose I want to search for files matching some pattern that I know ... (dot). ... In command-line Unix I can do: ...
    (comp.lang.tcl)
  • Re: Getting a file list
    ... > I want to put a list of files matching a wildcard search into an array ... > Then I do something with the FILE_LIST in a for loop. ... > or directory" error message in stdout. ... whereas using the pattern directly passes each entire file name as ...
    (comp.unix.shell)
  • Re: find/xargs question...
    ... | i'm trying to search through a dir tree for files matching certain patterns ... I'd munge the filename with sed - there are other choices. ... A sed command like this: ... your pattern, containing a file that also matches the pattern, would ...
    (Fedora)
  • DlgDirList matches long extensions
    ... If I use DlgDirList to fill a listbox with the files matching the pattern ... *.apl, it matches files matching the pattern *.apl*. ... Is there a way to get DlgDirList to behave like the GetOpenFileName? ...
    (microsoft.public.win32.programmer.ui)