Find the answer to your Linux question:
Results 1 to 2 of 2
I'm trying to do this expression: while ( expression_1 ) && ( expression_2 || expression_3 ) but I can't figure it out. I tried this: while [ expression_1 ] && ...
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    32

    Bash: Nested conditional expressions?

    I'm trying to do this expression:

    while (expression_1) && ( expression_2 || expression_3 )

    but I can't figure it out. I tried this:

    while [ expression_1 ] && [ [ expression_2 ] || [ expression_3 ] ]; do

    but the syntax came out wrong.

  2. #2
    Just Joined!
    Join Date
    Jun 2006
    Posts
    32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...