{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2782","repository_url":"https://api.github.com/repos/fish-shell/fish-shell","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2782/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2782/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2782/events","html_url":"https://github.com/fish-shell/fish-shell/issues/2782","id":137545035,"number":2782,"title":"Parallel (&) function fail to run parallel in a script","user":{"login":"pickfire","id":4687791,"avatar_url":"https://avatars.githubusercontent.com/u/4687791?v=3","gravatar_id":"","url":"https://api.github.com/users/pickfire","html_url":"https://github.com/pickfire","followers_url":"https://api.github.com/users/pickfire/followers","following_url":"https://api.github.com/users/pickfire/following{/other_user}","gists_url":"https://api.github.com/users/pickfire/gists{/gist_id}","starred_url":"https://api.github.com/users/pickfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pickfire/subscriptions","organizations_url":"https://api.github.com/users/pickfire/orgs","repos_url":"https://api.github.com/users/pickfire/repos","events_url":"https://api.github.com/users/pickfire/events{/privacy}","received_events_url":"https://api.github.com/users/pickfire/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-01T11:19:06Z","updated_at":"2016-03-01T11:44:00Z","closed_at":"2016-03-01T11:44:00Z","body":"### Reproduction Steps:\r\n\r\n```fish\r\nfunction testing\r\n    echo test\r\n    sleep 5\r\nend\r\n\r\nfor i in (seq 10)\r\n    testing &\r\nend\r\n```\r\n\r\n### Expected behavior:\r\n\r\n`testing` should be runned parallely.\r\n\r\n### Observed behavior:\r\n\r\n`testing` isn't runned parallely.\r\n\r\n### Additional information:\r\n\r\nThis is what I am going to achieve since `fish` has no `wait`:\r\n```fish\r\nfor i in (seq 10)\r\n    while math $i % (nproc) == 0\r\n        testing &\r\n    end\r\nend\r\n```\r\n\r\nMore information in fisherman/fisherman#138\r\n\r\n---\r\nFish version: fish, version fb5a8a0\r\nOperating system: alarm\r\nTerminal or terminal emulator: st\r\n"},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/190684593","html_url":"https://github.com/fish-shell/fish-shell/issues/2782#issuecomment-190684593","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2782","id":190684593,"user":{"login":"faho","id":5185367,"avatar_url":"https://avatars.githubusercontent.com/u/5185367?v=3","gravatar_id":"","url":"https://api.github.com/users/faho","html_url":"https://github.com/faho","followers_url":"https://api.github.com/users/faho/followers","following_url":"https://api.github.com/users/faho/following{/other_user}","gists_url":"https://api.github.com/users/faho/gists{/gist_id}","starred_url":"https://api.github.com/users/faho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faho/subscriptions","organizations_url":"https://api.github.com/users/faho/orgs","repos_url":"https://api.github.com/users/faho/repos","events_url":"https://api.github.com/users/faho/events{/privacy}","received_events_url":"https://api.github.com/users/faho/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T11:44:00Z","updated_at":"2016-03-01T11:44:00Z","body":"This is a duplicate of #563, I believe."}}