commit | cefecb695e61b831582996288abbbdaeaa5d8c00 | [log] [tgz] |
---|---|---|
author | Pi-Hsun Shih <pihsun@chromium.org> | Thu Jul 30 14:54:53 2020 +0800 |
committer | Mike Frysinger <vapier@chromium.org> | Thu Jul 30 18:36:11 2020 +0000 |
tree | 7a4a95c955c0eee8ec3d41d35f6f94dff6f79320 | |
parent | 20f883fc8a4cf9ba951e84ad3496cef005ae32fc [diff] |
bash_completion: Fix cros autocompletion Currently user would get '/bin/grep: Invalid range end' when trying to autocomplete after 'cros '. This is because the '-' in the regex is interpreted as range. Fix this by moving the - to the end of character group. BUG=None TEST=manually try autocomplete 'cros ' Change-Id: I57356333be485fcd9935f98afc9152a2fa5c819e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/2328244 Tested-by: Pi-Hsun Shih <pihsun@chromium.org> Auto-Submit: Pi-Hsun Shih <pihsun@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org>