{"action":"closed","issue":{"url":"https://api.github.com/repos/pcingola/BigDataScript/issues/117","labels_url":"https://api.github.com/repos/pcingola/BigDataScript/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/pcingola/BigDataScript/issues/117/comments","events_url":"https://api.github.com/repos/pcingola/BigDataScript/issues/117/events","html_url":"https://github.com/pcingola/BigDataScript/issues/117","id":112073918,"number":117,"title":"there is something unexpected $var expand in sys command","user":{"login":"zengfengbo","id":4654790,"avatar_url":"https://avatars.githubusercontent.com/u/4654790?v=3","gravatar_id":"","url":"https://api.github.com/users/zengfengbo","html_url":"https://github.com/zengfengbo","followers_url":"https://api.github.com/users/zengfengbo/followers","following_url":"https://api.github.com/users/zengfengbo/following{/other_user}","gists_url":"https://api.github.com/users/zengfengbo/gists{/gist_id}","starred_url":"https://api.github.com/users/zengfengbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zengfengbo/subscriptions","organizations_url":"https://api.github.com/users/zengfengbo/orgs","repos_url":"https://api.github.com/users/zengfengbo/repos","events_url":"https://api.github.com/users/zengfengbo/events{/privacy}","received_events_url":"https://api.github.com/users/zengfengbo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-19T05:21:11Z","updated_at":"2015-10-20T23:41:00Z","closed_at":"2015-10-20T23:41:00Z","body":"## bds scripts\r\n$ cat dollar_expand_error.bds\r\ntask {\r\n  sys cat ~/.bashrc | ruby -lane 'puts **$F**.size'\r\n}\r\n\r\n## $F is the inner global var which will recognized by ruby.\r\n$ cat ~/.bashrc | ruby -lane 'puts **$F**.size' |head -2\r\n2\r\n0\r\n\r\n## unexpected error\r\n$ bds dollar_expand_error.bds\r\nCompiler messages:\r\nERROR [ file 'dollar_expand_error.bds', line 2 ] :\tSymbol 'F' cannot be resolved\r\n\r\nCompiler messages:\r\nERROR [ file 'dollar_expand_error.bds', line 2 ] :\tSymbol 'F' cannot be resolved\r\n"}}