Browse Source

Use POSIX character classes, like a pro

Alois Mahdal 8 years ago
parent
commit
bb1624d918
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      dotfiles/bash/main.bashrc

+ 1
- 1
dotfiles/bash/main.bashrc View File

203
             *)      dnf provides "*/bin/$bname" ;;
203
             *)      dnf provides "*/bin/$bname" ;;
204
         esac \
204
         esac \
205
           | grep '^.' \
205
           | grep '^.' \
206
-          | grep -E '^[0-9a-zA-Z_:.-]+ :'
206
+          | grep -E '^[[:alnum:]_:.-]+ :'
207
     done
207
     done
208
 }
208
 }
209
 
209