bug-bash
[Top][All Lists]
Advanced

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

[DOC] Incomplete explanation about the regex =~ operator


From: gilaro
Subject: [DOC] Incomplete explanation about the regex =~ operator
Date: Tue, 8 Jan 2019 10:47:21 +0000 (UTC)

The shell operation mentioned in the Bash Reference Manual (3.1.1 Shell 
Operation) does not match the operation defined for the conditional expression 
"[[" when using a regular expression (3.2.4.2 Conditional Constructs). The 
corresponding explanation is only presented in the Bash FAQ (Why does quoting 
the regular expression matching conditional operator (=~) cause regex matching 
to stop working?). Moreover, this explanation is unclear; it lacks concrete 
examples.
See also: Does bash support word boundary regular expressions?

| 
| 
| 
|  |  |

 |

 |
| 
|  | 
Does bash support word boundary regular expressions?

I am trying to match on the presence of a word in a list before adding that 
word again (to avoid duplicates). I ...
 |

 |

 |


Best regards,Kevin


reply via email to

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