
#include <builtins.swift>
#include <io.swift>
#include <files.swift>
#include <sys.swift>

//usage: stc 563-glob.swift -S=/home/zzhang/*.swift
main
{
  string s[];	
  s = glob(argv("S"));
  foreach f in s
  {
    printf("file: %s", f);	
  }
}


#include <builtins.swift>
#include <io.swift>
#include <files.swift>
#include <sys.swift>

//usage: stc 563-glob.swift -S=/home/zzhang/*.swift
main
{
  file s[];	
  s = glob(argv("S"));
  foreach f in s
  {
    printf("file: %s", filename(f));	
  }
}

Change glob to return files
Change glob to return files

git-svn-id: 47705994653588c662f4ea400dfe88107361c0e2@5557 dc4e9af1-7f46-4ead-bba6-71afc04862de
