diff options
| author | Eli Young | 2016-09-09 14:15:07 -0700 |
|---|---|---|
| committer | Eli Young | 2016-09-28 16:36:11 -0700 |
| commit | 09c04aa7155ee567f58e2b2285868bb81ce973c9 (patch) | |
| tree | b954ab830b5f39f21f3e64edc5763f8691f8b00b /Library/Homebrew/dev-cmd/pull.rb | |
| parent | ff4636bd85b28ebf0d6a94422b76896e4606cf6a (diff) | |
| download | brew-09c04aa7155ee567f58e2b2285868bb81ce973c9.tar.bz2 | |
completion: Avoid aliases with `command ls`
If the user has an alias overriding the `ls` command that modifies the
output (e.g. `alias ls='ls -F'`), it will cause unexpected characters to
appear in completions. Using `command ls` forces the shell to use the
command directly, without alias expansion.
This also blackholes the stderr of `ls` when used to avoid printing
errors during completion if the requisite directory does not exist.
Diffstat (limited to 'Library/Homebrew/dev-cmd/pull.rb')
0 files changed, 0 insertions, 0 deletions
