-
-
Notifications
You must be signed in to change notification settings - Fork 788
Description
Task version: 2.4.0 OS: Darwin (MacOS)
This project really looks promising, and I would really like to use this instead of Make except I am running into some problems.
I have the fallowing example task file. For the below test I ran this first to have a test file: $ echo 'hello world' > ~/testfile.txt:
version: "2"
env:
WORLD: world!!!!!
HW: hello_${WORLD}
TEST_FILE: ~/testfile.txt
tasks:
test:
cmds:
- echo $HOME
- echo ~
- echo $WORLD
- echo $HW
- echo $TEST_FILE
- echo ~/testfile.txt
- cat ~/testfile.txt
- echo ${TEST_FILE}
- cat ${TEST_FILE}I get the fallowing output (minus the -----> expected appended) when I run $ task test:
echo $HOME
/Users/ilyes512
echo ~
/Users/ilyes512
echo $WORLD
world!!!!!
echo $HW
hello_${WORLD} -----> expected: hello_world!!!!!
echo $TEST_FILE
~/testfile.txt
echo ~/testfile.txt
/Users/ilyes512/testfile.txt
cat ~/testfile.txt
hello world
echo ${TEST_FILE}
~/testfile.txt -----> expected: /Users/ilyes512/testfile.txt
cat ${TEST_FILE}
cat: ~/testfile.txt: No such file or directory -----> expected: hello worldWhen I set an env variable like this (and I don't even use it):
env:
EXAMPLE: ${HOME}/foobarIt will error with:
"{HOME}/foobar": executable file not found in $PATH
task: Command "{HOME}/foobar" in taskvars file failed: exit status 127- So should I be able to use a earlier set env variable in another env?
- Does the
~and${HOME}behave correctly?
Another issue I saw about almost the same thing: #74 It also mentions a "chat". Is this still in use, and if so, it should be documented somewhere? (would expect the readme to mention it).
BTW I have tried variables as both ${FOOBAR} as well as $FOOBAR (so minus the { and }).
Thanks in advance :)