Of course... My own stupidity.
It did raise the question for me, what would be the recommended way to
'group' expressions, where other languages would use brackets, like:
if (((q==1)) || [[ $r ]]) && grep -q $s $file
then
echo "$s is in $file, and either q is 1 or r is not empty"
fi
I guess th
On Thu, Dec 29, 2016 at 09:43:54PM +0700, PePa wrote:
> if (((q==1)) || [[ $r ]]) && grep -q $s $file
> then
> echo "$s is in $file, and either q is 1 or r is not empty"
> fi
>
> I guess this works, but it spawns a subshell. Is there a better way?
What you're literally asking for should be done
On Thu, Dec 29, 2016 at 11:20 AM, Steve Amerige wrote:
> I've posted a question to StackOverflow, but I'm hoping the experts here can
> chime in.
>
> http://stackoverflow.com/questions/41346907/bash-trap-how-to-get-line-number-of-a-subprocess-with-non-zero-status
>
> In essence, I want to know how