{"action":"created","issue":{"url":"https://api.github.com/repos/nojhan/liquidprompt/issues/401","labels_url":"https://api.github.com/repos/nojhan/liquidprompt/issues/401/labels{/name}","comments_url":"https://api.github.com/repos/nojhan/liquidprompt/issues/401/comments","events_url":"https://api.github.com/repos/nojhan/liquidprompt/issues/401/events","html_url":"https://github.com/nojhan/liquidprompt/issues/401","id":113226499,"number":401,"title":"grep: Unmatched ) or \\","user":{"login":"tconstans","id":7312402,"avatar_url":"https://avatars.githubusercontent.com/u/7312402?v=3","gravatar_id":"","url":"https://api.github.com/users/tconstans","html_url":"https://github.com/tconstans","followers_url":"https://api.github.com/users/tconstans/followers","following_url":"https://api.github.com/users/tconstans/following{/other_user}","gists_url":"https://api.github.com/users/tconstans/gists{/gist_id}","starred_url":"https://api.github.com/users/tconstans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tconstans/subscriptions","organizations_url":"https://api.github.com/users/tconstans/orgs","repos_url":"https://api.github.com/users/tconstans/repos","events_url":"https://api.github.com/users/tconstans/events{/privacy}","received_events_url":"https://api.github.com/users/tconstans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-25T13:46:18Z","updated_at":"2015-10-26T18:33:01Z","closed_at":null,"body":"Dear all,\r\n\r\nliquidprompt is displaying this error message:\r\n>grep: Unmatched ) or \\)\r\nbash: let: detached=: syntax error: operand expected (error token is \"=\"\r\n\r\nSeems to be caused by ) not being escaped on line 679 :\r\n\r\n`$_LP_ENABLE_SCREEN && let detached=$(screen -ls 2> /dev/null | grep -c '[Dd]etach[^\\)]*\\)$')` \r\n\r\nBest regards\r\n"},"comment":{"url":"https://api.github.com/repos/nojhan/liquidprompt/issues/comments/151240567","html_url":"https://github.com/nojhan/liquidprompt/issues/401#issuecomment-151240567","issue_url":"https://api.github.com/repos/nojhan/liquidprompt/issues/401","id":151240567,"user":{"login":"tconstans","id":7312402,"avatar_url":"https://avatars.githubusercontent.com/u/7312402?v=3","gravatar_id":"","url":"https://api.github.com/users/tconstans","html_url":"https://github.com/tconstans","followers_url":"https://api.github.com/users/tconstans/followers","following_url":"https://api.github.com/users/tconstans/following{/other_user}","gists_url":"https://api.github.com/users/tconstans/gists{/gist_id}","starred_url":"https://api.github.com/users/tconstans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tconstans/subscriptions","organizations_url":"https://api.github.com/users/tconstans/orgs","repos_url":"https://api.github.com/users/tconstans/repos","events_url":"https://api.github.com/users/tconstans/events{/privacy}","received_events_url":"https://api.github.com/users/tconstans/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T18:33:01Z","updated_at":"2015-10-26T18:33:01Z","body":"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA256\n\nHello Olivier,\n\nI am not a screen user\n\nscreen -ls\nNo Sockets found in /var/run/screen/S-root.\n\ngrep --version\ngrep (GNU grep) 2.20\n\ncat /etc/redhat-release\nCentOS release 6.7 (Final)\n\nI get the same issue on on CentOs 7.1.1503 which is also using grep v 2.\n20\n\n\nI have ran the following line on different systems (no screen running) :\nlet detached=$(screen -ls 2> /dev/null | grep -c '[Dd]etach[^)]*)$')\n\ndebian 7.9 - grep 2.12 OK\ncentos 6.7 - grep 2.20 \"grep: Unmatched ) or \\)\"\ncentos 7 - grep 2.20 \"grep: Unmatched ) or \\)\"\n\nBest regards\n\nI get the same result wether i use tmux or not.\nLe 26/10/2015 14:29, Olivier Mengué a écrit :\n> Could you also give me the output of `screen -ls 2>/dev/null` when\n> this issue occurs?\n> \n> --- Reply to this email directly or view it on GitHub: \n> https://github.com/nojhan/liquidprompt/issues/401#issuecomment-1511333\n07\n>\n> \n- -- \nThomas Constans\nServices en informatique libre\nT: 33(0)6 23 37 87 85\n@: http://opendoor.fr\n#: https://twitter.com/ThomasConstans\ngpg: 0xBA19745F80410541\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v2\n\niQEcBAEBCAAGBQJWLnGzAAoJELoZdF+AQQVBwkYIAKfoBMQ2MsMWZqASR5LDUuVc\nJi5v/HAOlxTnGMNa//j+Op9+ks5TLxQwAASNObU/pbPlcq/xjrO0nlX4QA4fLWx6\niLLvaiFGD96+jfsEpS5Gl/E6w+lp59MCKhssmq0pbf7VS7hfNzvx5IWmdyP60H64\nDdfQlvud/1F4LYKqH6mptcZBUgmkd83xSHANjS8NwyElPXF0vmotQZxY9KHzNxcM\nNg/vqhLoVqTKZM011CwmDrLmIPZzQR75MwSUA9+k0gsriVEo/mHrY56yC2pQz674\nTt+R/9ZNnJAGobSGjqiNDhmXK5a7ECNd+kEa79HjGkrNhPVjrEeqaEzJeAqkWvg=\n=NTt/\n-----END PGP SIGNATURE-----\n"}}