Logo
Explore Help
Sign In
h/fish-shell
1
Fork 0
You've already forked fish-shell
mirror of https://github.com/fish-shell/fish-shell.git synced 2026-05-16 07:01:14 -03:00
Code Issues Packages Projects Releases Wiki Activity
Files
a02aa7a3166f2ba92cbb6eebc2b201ebb7a9f78b
fish-shell/share/functions/sgrep.fish

6 lines
115 B
Fish
Raw Normal View History

Replace all internal uses of grep with sgrep, which is a wrapper around grep that strips away any GREP_OPTIONS. This is needed to avoid users who have added arbitrary switches to GREP_OPTIONS, thus changing its behaviour. darcs-hash:20061129140004-ac50b-485ff6bfd71e9459ba62461f6e093ca5c9ddd664.gz
2006-11-30 00:00:04 +10:00
function sgrep -d "Call grep without honoring GREP_OPTIONS settings"
set -l GREP_OPTIONS
call original grep in sgrep functions/grep.fish will set the GREP_OPTIONS, which will ruin sgrep's effort.
2010-09-19 13:56:30 +08:00
command grep $argv
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 63ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API