Add echo input line to calc()
This commit is contained in:
parent
d8d3ed5a3f
commit
20bfe89994
1 changed files with 1 additions and 0 deletions
|
@ -114,5 +114,6 @@ bye() {
|
||||||
|
|
||||||
calc() {
|
calc() {
|
||||||
# Use python to make simple calculations, like 'calc 24/8'
|
# Use python to make simple calculations, like 'calc 24/8'
|
||||||
|
echo -n "$* = "
|
||||||
python -c "print($*)"
|
python -c "print($*)"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue