Hi guy

  • 0 Posts
  • 19 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle


  • https://www.man7.org/linux/man-pages/man1/bash.1.html

    Lists A list is a sequence of one or more pipelines separated by one of the operators ;, &, &&, or ||, and optionally terminated by one of ;, &, or <newline>.

       Of these list operators, && and || have equal precedence, followed by ; and &, which have equal precedence.
    
       A sequence of one or more newlines may appear in a list instead of a semicolon to delimit commands.
    
       ....
    
       AND and OR lists are sequences of one or more pipelines separated by the && and || control operators, respectively.  AND and OR lists are executed with left associativity.  An AND list has the form
    
              command1 && command2
    
       **command2 is executed if, and only if, command1 returns an exit status of zero (success).**
    

    So, command 1 returns success, but command 2 fails. The FAILED comment at the beginning of the error message is the message to parse, one part succeeded, the other failed.

    Not using && and running your command by line will show where the error is.















  • I originally included the words “assuming random” to the post. Why I removed it? I guess for dramatic effect. You are correct. Permutations of dictionary words are relatively trivial for a decent program. But, increasing the length and the addition of special characters adds a nontrivial exponential increase in time, wouldn’t it?