fixing echoing bug
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
BAKE=$( readlink -f ../bake )
|
||||
internals() {
|
||||
_yecho "flines function"
|
||||
_assert_eq "$( cd internals; $BAKE flines | wc -l )" "4"
|
||||
_assert_eq "$( cd internals; $BAKE flines | wc -l )" "5"
|
||||
_yecho "commands function"
|
||||
_assert_eq "$( cd internals; $BAKE commands )" "^target1$|^target2$|^flines$|^commands$"
|
||||
_assert_eq "$( cd internals; $BAKE commands )" "^target1$|^target2$|^flines$|^commands$|^echoing$"
|
||||
_yecho "Not a target should fail"
|
||||
( cd internals; $BAKE non-existent ) && { _fail; } || { _pass; }
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
target1() {
|
||||
@ echo 1
|
||||
echo 1
|
||||
}
|
||||
target2() { # Target description
|
||||
# Sub help
|
||||
@@ -15,3 +15,10 @@ flines() {
|
||||
commands() {
|
||||
_commands
|
||||
}
|
||||
|
||||
echoing() {
|
||||
@ echo some command
|
||||
@ echo escaped \
|
||||
command \
|
||||
follows
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user