[Omake] SVN Commit: OMake Build System (Rev. 9061)

Jason Hickey jyh at cs.caltech.edu
Wed Apr 12 10:28:34 PDT 2006


Aleksey Nogin wrote:
> Corner case - will argv wrappers work? For example (from LaTeX.om):

Sure, that was one of the main points in all this quoting.

    Shell. +=
       foo(argv) =
          println(Foo)
       boo(argv) =
          $(argv)

    osh>foo
    Foo
    osh>boo foo
    Foo

Note that command lines are flattened all the way to strings.

    osh>boo fo$'o'
    Foo

This may-or-may not be a reasonable policy.  I would say that aliases 
should be more expressive.

    Shell. +=
       boo(argv) =
          cd moo
          echo $(argv)

    FOO = $(file foo)

    osh>boo
    # Should print the name from the moo directory

Jason

-- 
Jason Hickey                  http://www.cs.caltech.edu/~jyh
Caltech Computer Science      Tel: 626-395-6568 FAX: 626-792-4257



More information about the OMake-Devel mailing list