[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Another "set" option?
From: |
Bruce Korb |
Subject: |
Another "set" option? |
Date: |
Wed, 10 Jul 2013 10:07:53 -0700 |
This seems like a lot of obtuse bother:
xtrace_setting=$(
re=$'\nxtrace[ \t]+on'
[[ $(set -o) =~ $re ]] && echo ' -x' || echo ' +x')
if there were only some magic like ${BASH_SETTING_XTRACE} or
xtrace_setting=$(set -q xtrace) or something. Could we get
something fairly straight forward for querying set/shopt state?
Thank you for considering. Regards, Bruce
- Another "set" option?,
Bruce Korb <=