int([x[, base]]). Square brackets in functions in Python documentation?

When one or more top-level parameters have the form parameter =
expression, the function is said to have “default parameter values.”
For a parameter with a default value, the corresponding argument may
be omitted from a call, in which case the parameter’s default value is
substituted. If a parameter has a default value, all following
parameters must also have a default value — this is a syntactic
restriction that is not expressed by the grammar.

Can I “export” functions in bash?

source some_file some_file: doit () { echo doit $1 } export TEST=true If I source some_file the function “doit” and the variable TEST are available on the command line. But running this script: script.sh: #/bin/sh echo $TEST doit test2 Will return the value of TEST, but will generate an error about the unknown function “doit”. … Read more

Running an executable in PATH with the same name as an existing function

Sometimes I define a function that shadows an executable and tweaks its arguments or output. So the function has the same name as the executable, and I need a way how to run the executable from the function without calling the function recursively. For example, to automatically run the output of fossil diff through colordiff and less -R I use: