{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2438","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2438/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2438/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2438/events","html_url":"https://github.com/fish-shell/fish-shell/issues/2438","id":108620781,"number":2438,"title":"Cartesian product is weird with zero elements","user":{"login":"alphapapa","id":601365,"avatar_url":"https://avatars.githubusercontent.com/u/601365?v=3","gravatar_id":"","url":"https://api.github.com/users/alphapapa","html_url":"https://github.com/alphapapa","followers_url":"https://api.github.com/users/alphapapa/followers","following_url":"https://api.github.com/users/alphapapa/following{/other_user}","gists_url":"https://api.github.com/users/alphapapa/gists{/gist_id}","starred_url":"https://api.github.com/users/alphapapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphapapa/subscriptions","organizations_url":"https://api.github.com/users/alphapapa/orgs","repos_url":"https://api.github.com/users/alphapapa/repos","events_url":"https://api.github.com/users/alphapapa/events{/privacy}","received_events_url":"https://api.github.com/users/alphapapa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/8","html_url":"https://github.com/fish-shell/fish-shell/milestones/fish-tank","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/8/labels","id":343670,"number":8,"title":"fish-tank","description":"Issues (typically enhancement requests) that are worth considering but there's no consensus on, or where the path forward is not clear.","creator":{"login":"ridiculousfish","id":920838,"avatar_url":"https://avatars.githubusercontent.com/u/920838?v=3","gravatar_id":"","url":"https://api.github.com/users/ridiculousfish","html_url":"https://github.com/ridiculousfish","followers_url":"https://api.github.com/users/ridiculousfish/followers","following_url":"https://api.github.com/users/ridiculousfish/following{/other_user}","gists_url":"https://api.github.com/users/ridiculousfish/gists{/gist_id}","starred_url":"https://api.github.com/users/ridiculousfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridiculousfish/subscriptions","organizations_url":"https://api.github.com/users/ridiculousfish/orgs","repos_url":"https://api.github.com/users/ridiculousfish/repos","events_url":"https://api.github.com/users/ridiculousfish/events{/privacy}","received_events_url":"https://api.github.com/users/ridiculousfish/received_events","type":"User","site_admin":false},"open_issues":50,"closed_issues":23,"state":"open","created_at":"2013-05-28T21:04:35Z","updated_at":"2015-10-01T22:44:27Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2015-09-28T09:31:49Z","updated_at":"2015-10-16T10:41:02Z","closed_at":null,"body":"```fish\r\n$ set foo fizz\r\n$ set bar buzz\r\n$ echo {$foo}{$bar}\r\nfizzbuzz\r\n```\r\nHowever:\r\n```fish\r\n$ set bar buzz\r\n$ echo {$foo}{$bar}\r\n$\r\n```\r\nAnd:\r\n```fish\r\n$ set foo \"\"\r\n$ set bar buzz\r\n$ echo {$foo}{$bar}\r\nbuzz\r\n```\r\nShouldn't the second example output `buzz`?"},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/148680013","html_url":"https://github.com/fish-shell/fish-shell/issues/2438#issuecomment-148680013","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2438","id":148680013,"user":{"login":"Profpatsch","id":3153638,"avatar_url":"https://avatars.githubusercontent.com/u/3153638?v=3","gravatar_id":"","url":"https://api.github.com/users/Profpatsch","html_url":"https://github.com/Profpatsch","followers_url":"https://api.github.com/users/Profpatsch/followers","following_url":"https://api.github.com/users/Profpatsch/following{/other_user}","gists_url":"https://api.github.com/users/Profpatsch/gists{/gist_id}","starred_url":"https://api.github.com/users/Profpatsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Profpatsch/subscriptions","organizations_url":"https://api.github.com/users/Profpatsch/orgs","repos_url":"https://api.github.com/users/Profpatsch/repos","events_url":"https://api.github.com/users/Profpatsch/events{/privacy}","received_events_url":"https://api.github.com/users/Profpatsch/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T10:41:02Z","updated_at":"2015-10-16T10:41:02Z","body":"> Any proposal for what the behavior ought to be?\r\n\r\nUnset variables should definitely not act as the empty list.\r\n\r\nI have to admit, from sensible languages I didn’t learn the `\"string\"(foobar)\"string\"` style (instead of `\"string\" (foobar) \"string\"), bash taught me that. So it’s probably punishment for that abomination.\r\n\r\nI see `$(` and `\\(` critical, because parens in strings are quite overloaded on POSIX (see regex), adding yet another interpretation (that possibly needs to be escaped) won’t help with that."}}