From 7ac32e45cb90118ebbb4d4fe2024fc1751a3b65b Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sat, 18 Jun 2016 22:20:18 -0700 Subject: Remove SHLVL check. Fixes #3154. --- share/functions/suspend.fish | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/share/functions/suspend.fish b/share/functions/suspend.fish index 32cdfa90..295b9f34 100644 --- a/share/functions/suspend.fish +++ b/share/functions/suspend.fish @@ -1,19 +1,10 @@ -# If the user hasn't set it, make sure our test level has a value -if not set -q suspend_minimum_SHLVL - set -g suspend_minimum_SHLVL 2 -end - - function suspend -d "Suspend the current shell." if begin contains -- $argv --force - or not status --is-interactive - or begin test $SHLVL -ge $suspend_minimum_SHLVL - and not status --is-login - end + or not status --is-interactive and not status --is-login end echo Suspending %self kill -STOP %self else - echo 2>&1 Cannot suspend login shell or SHLVL to low, use --force to force. + echo 2>&1 Cannot suspend login shell. Use --force to override. end end -- cgit v1.2.3