fixed sqrt function that had an extra { in it
This commit is contained in:
parent
3cfe5fd0e0
commit
a34502935e
1 changed files with 3 additions and 2 deletions
|
@ -54,10 +54,11 @@ fix_spaces()
|
|||
sqrt()
|
||||
|
||||
{
|
||||
[ $# -ne 1 ] && {
|
||||
[ $# -ne 1 ] &&
|
||||
{
|
||||
echo 'Usage: sqrt number'
|
||||
exit 1
|
||||
} || {
|
||||
} ||
|
||||
echo -e "sqrt($1)\nquit\n" | bc -q -i | head -2 | tail -1
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue