bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning (HTML included to show prog shipped w/syntax highlighting).


From: Greg Wooledge
Subject: Re: Warning (HTML included to show prog shipped w/syntax highlighting).
Date: Thu, 11 Aug 2011 08:00:54 -0400
User-agent: Mutt/1.4.2.3i

On Wed, Aug 10, 2011 at 03:23:47PM -0700, Linda W wrote:
>  1 #!/bin/bash
>  2 
> 30 
> 31 # trace control for subs
> 32 declare -ix Allow_Trace=$(((
> 33                         _D_LowLevel   |
> 34                         _D_Provides   |
> 35                         _D_ 
> 36                       )))

I cannot for the life of me figure out what you are trying to do here.
Why are you writing $((( at all?  Is _D_LowLevel a variable or a command
name?  Are you trying to write a pipeline of commands, or a bunch of
bit-wise ORs?

If you want a pipeline, use $(a|b|c).  If you want bit-wise arithmetic,
use $((a|b|c)).  If you want an unreadable mess, continue as you are doing.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]