cons-discuss
[Top][All Lists]
Advanced

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

documentation example on Command method fails


From: Terrence Brannon
Subject: documentation example on Command method fails
Date: Fri, 13 Oct 2000 11:49:51 -0700 (PDT)

I know that this is failing because it cant find a file named foo. But typing

echo foo,bar,baz > tgt

worked just fine from the shell --- it created a file with that string in it.

 

 

$ ls -lart
total 8
-rw-rw-r--   1 tbrannon   staff           71 Oct 13 10:21 Conscript~
-rw-rw-r--   1 tbrannon   staff           92 Oct 13 11:02 Conscript
drwxrwxr-x  11 tbrannon   staff         1024 Oct 13 13:50 ..
drwxrwxr-x   2 tbrannon   staff           96 Oct 13 14:35 .
-rw-rw-r--   1 tbrannon   staff          116 Oct 13 14:35 Construct
$ cons tgt
/bin/ksh: cons:  not found
$ ../cons tgt
cons: don't know how to construct "foo"
$ ls -l
total 6
-rw-rw-r--   1 tbrannon   staff           92 Oct 13 11:02 Conscript
-rw-rw-r--   1 tbrannon   staff           71 Oct 13 10:21 Conscript~
-rw-rw-r--   1 tbrannon   staff          116 Oct 13 14:35 Construct
$ cat Construct
$env = new cons(X_COMMA => sub { join(',', @_) });
Command $env 'tgt', qw(foo bar baz), "echo %[X_COMMA %<%] > %>"
 $ cons tgt
/bin/ksh: cons:  not found
$ ../cons tgt
cons: don't know how to construct "foo"
$


 



Terrence Brannon
90 St. Mark's Place
Apt. 2E North
Staten Island, NY 10301
718-448-7915



Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
reply via email to

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