OILS
/
opy
/ fix.sh
View on Github
|
oilshell.org
15 lines, 6 significant
1
#!/usr/bin/env bash
2
#
3
# Usage:
4
# ./fix.sh <function name>
5
6
set -o nounset
7
set -o pipefail
8
set -o errexit
9
10
# -w to write it back
11
print() {
12
2to3 --fix print
"
$@
"
13
}
14
15
"
$@
"