xonixx / makesure

Simple task/command runner with declarative goals and dependencies
https://makesure.dev
MIT License
344 stars 5 forks source link

Spaces in `@define` are not recognized properly #142

Closed xonixx closed 1 year ago

xonixx commented 1 year ago

They are collapsed to one space.

# Makesurefile
@define A='a         b'

@goal g
  echo "$A"
$ ./makesure -f tmp/m4.sh g
  goal 'g' ...
a b

Same issue with @reached_if:

@define ISSUE_142='a     b' # 5 spaces

@goal g
@reached_if echo "$ISSUE_142"
echo 'Should not show this'

Result:

a b
  goal 'g' [already satisfied].