fix syntax errors and added some .gitignores
parent
e781ed8bd0
commit
e006ccc830
|
|
@ -124,8 +124,8 @@ function calc() {
|
|||
if [[ "$result" == *.* ]]; then
|
||||
# improve the output for decimal numbers
|
||||
printf "$result" |
|
||||
sed -e 's/^\./0./' `# add "0" for cases like ".5"` \
|
||||
-e 's/^-\./-0./' `# add "0" for cases like "-.5"`\
|
||||
sed -e 's/^\./0./' # add "0" for cases like ".5"` \
|
||||
-e 's/^-\./-0./' # add "0" for cases like "-.5"`\
|
||||
-e 's/0*$//;s/\.$//'; # remove trailing zeros
|
||||
else
|
||||
printf "$result";
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@ _*
|
|||
.netrc
|
||||
*.dll
|
||||
tags
|
||||
*.orig
|
||||
|
||||
.gnupg
|
||||
|
||||
|
||||
# Directory
|
||||
|
|
@ -45,3 +47,6 @@ Tools/vim/tutor/
|
|||
.atom/packages
|
||||
.cordova
|
||||
.grunt-init
|
||||
Tools/vim/vimrc
|
||||
Tools/vim/vim74
|
||||
Tools/cmder
|
||||
|
|
|
|||
Loading…
Reference in New Issue