• Marc Cornellà's avatar
    Escape % in $CMD variable · 5137e0e5
    Marc Cornellà authored
    Fixes formatting on some rare cases when a percent ends up
    in the $CMD variable, like these below:
    
    - When assigning a variable, $CMD ends up with the second parameter;
    in this case, $CMD will contain '+%s%N', messing with the syntax:
    
     $ a=`date +%s%N`
    
    - A function (or command in general) that contains a percent symbol:
    
     $ to\%() { echo $(( $1 * 100 / $3))\% } # $CMD=to%()
     $ to% 2 of 10 # $CMD=to%
    5137e0e5
Name
Last commit
Last update
custom Loading commit data...
lib Loading commit data...
log Loading commit data...
plugins Loading commit data...
templates Loading commit data...
themes Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
MIT-LICENSE.txt Loading commit data...
README.textile Loading commit data...
oh-my-zsh.sh Loading commit data...