Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$name is detected as a top-scope variable #23

Closed
hkraal opened this issue Aug 31, 2011 · 0 comments
Closed

$name is detected as a top-scope variable #23

hkraal opened this issue Aug 31, 2011 · 0 comments

Comments

@hkraal
Copy link

hkraal commented Aug 31, 2011

The snippet:

define foo::bar( $var ) {
  exec { "echo-test-${name}":
    unless "grep ${var} /tmp/foo_bar.txt"
    command "echo ${name} >> /tmp/foo_bar.txt"
  }
}

will give the errors:

WARNING: top-scope variable being used without an explicit namespace on line 2
WARNING: top-scope variable being used without an explicit namespace on line 4

which shouldn't as far as I understand. Probably a bug to the exceptional nature of the $name variable?

@rodjek rodjek closed this as completed in 27eafc1 Sep 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants