aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/trap.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-09 20:55:04 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-09 20:55:04 +0200
commitb85a8bbbfed56f603dca5d6da85858f9c973b669 (patch)
treeaaca0722b25cff9d5e2ea5b46ad6e7dc59d9ec6d /share/functions/trap.fish
parent925f4517739ed564edcac6dd5ed29c2835461da9 (diff)
Rename sgrep to __fish_sgrep
Makes it harder to cause issues with aliases, see fish-shell#2245
Diffstat (limited to 'share/functions/trap.fish')
-rw-r--r--share/functions/trap.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/trap.fish b/share/functions/trap.fish
index ff4868f2..47f39c97 100644
--- a/share/functions/trap.fish
+++ b/share/functions/trap.fish
@@ -124,7 +124,7 @@ function trap -d 'Perform an action when the shell receives a signal'
if count $opt >/dev/null
set names $opt
else
- set names (functions -na|sgrep "^__trap_handler_"|sed -e 's/__trap_handler_//' )
+ set names (functions -na| __fish_sgrep "^__trap_handler_"|sed -e 's/__trap_handler_//' )
end
for i in $names