{"action":"opened","issue":{"url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/576","repository_url":"https://api.github.com/repos/BurntSushi/ripgrep","labels_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/576/comments","events_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/576/events","html_url":"https://github.com/BurntSushi/ripgrep/issues/576","id":250984702,"number":576,"title":"Somehow using rg in an alias breaks it","user":{"login":"lexicalunit","id":1903876,"avatar_url":"https://avatars1.githubusercontent.com/u/1903876?v=4","gravatar_id":"","url":"https://api.github.com/users/lexicalunit","html_url":"https://github.com/lexicalunit","followers_url":"https://api.github.com/users/lexicalunit/followers","following_url":"https://api.github.com/users/lexicalunit/following{/other_user}","gists_url":"https://api.github.com/users/lexicalunit/gists{/gist_id}","starred_url":"https://api.github.com/users/lexicalunit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexicalunit/subscriptions","organizations_url":"https://api.github.com/users/lexicalunit/orgs","repos_url":"https://api.github.com/users/lexicalunit/repos","events_url":"https://api.github.com/users/lexicalunit/events{/privacy}","received_events_url":"https://api.github.com/users/lexicalunit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-17T15:33:48Z","updated_at":"2017-08-17T15:33:48Z","closed_at":null,"body":"When I run the exact same command as an alias, it works as expected. The intent is to search all files, disregarding any vcs or ignore files, and only exclude `.yml` files from the search.\r\n\r\n```shell\r\n$ cd /tmp\r\n$ git clone git@github.com:lexicalunit/atom-notes.git\r\n$ cd atom-notes\r\n$ alias foo='rg --no-ignore -g \"\\!.yml\" -c '\r\n$ foo this\r\nNo files were searched, which means ripgrep probably applied a filter you didn't expect. Try running again with --debug.\r\n$ rg --no-ignore -g \"\\!.yml\" -c this\r\nLICENSE.md:2\r\nREADME.md:4\r\nlib/atom-notes.js:27\r\nlib/notes-view-list-item.js:6\r\nlib/notes-view-list.js:44\r\nlib/notes-view.js:18\r\nlib/utility.js:12\r\nnotebook/Welcome.md:1\r\n$ foo --debug this\r\nDEBUG:globset: built glob set; 0 literals, 1 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 0 regexes\r\nDEBUG:grep::search: regex ast:\r\nLiteral {\r\n    chars: [\r\n        't',\r\n        'h',\r\n        'i',\r\n        's'\r\n    ],\r\n    casei: false\r\n}\r\nDEBUG:grep::literals: literal prefixes detected: Literals { lits: [Complete(this)], limit_size: 250, limit_class: 10 }\r\nDEBUG:ignore::walk: ignoring ./.all-contributorsrc: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./.eslintrc.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./.git: Ignore(IgnoreMatch(Hidden))\r\nDEBUG:ignore::walk: ignoring ./.gitignore: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./.nvatom-all-contributorsrc: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./.travis.yml: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./appveyor.yml: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./circle.yml: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./LICENSE.md: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./package-lock.json: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./package.json: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./README.md: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./grammars/notes.cson: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./lib/atom-notes.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./lib/config.coffee: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./lib/interlink.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./lib/notes-view-list-item.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./lib/notes-view-list.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./lib/notes-view.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./lib/utility.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./menus/atom-notes.cson: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./notebook/How to use.md: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./notebook/Welcome.md: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./spec/.eslintrc.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./spec/atom-notes-spec.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./spec/interlink-spec.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./spec/utility-spec.js: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nDEBUG:ignore::walk: ignoring ./styles/atom-notes.less: Ignore(IgnoreMatch(Override(Glob(UnmatchedIgnore))))\r\nNo files were searched, which means ripgrep probably applied a filter you didn't expect. Try running again with --debug.\r\n```\r\n\r\n# Versions\r\n\r\nmacOS 10.12.5\r\n\r\n```\r\n$ eval \"$SHELL --version\"\r\nzsh 5.2 (x86_64-apple-darwin16.0)\r\n$ rg --version\r\nripgrep 0.5.2\r\n```\r\n"}}
{"actor":{"display_login":"lexicalunit"}}