##// END OF EJS Templates
replace $() with backticks...
Julian Taylor -
Show More
@@ -65,7 +65,7 b' _ipython()'
65 return 0
65 return 0
66 elif [[ ${prev} == "--pylab"* ]] || [[ ${prev} == "--gui"* ]]; then
66 elif [[ ${prev} == "--pylab"* ]] || [[ ${prev} == "--gui"* ]]; then
67 if [ -z "$__ipython_complete_pylab" ]; then
67 if [ -z "$__ipython_complete_pylab" ]; then
68 __ipython_complete_pylab=$(cat <<EOF | python -
68 __ipython_complete_pylab=`cat <<EOF | python -
69 try:
69 try:
70 import IPython.core.shellapp as mod;
70 import IPython.core.shellapp as mod;
71 for k in mod.InteractiveShellApp.pylab.values:
71 for k in mod.InteractiveShellApp.pylab.values:
@@ -73,13 +73,13 b' try:'
73 except:
73 except:
74 pass
74 pass
75 EOF
75 EOF
76 )
76 `
77 fi
77 fi
78 local IFS=$'\t\n'
78 local IFS=$'\t\n'
79 COMPREPLY=( $(compgen -W "${__ipython_complete_pylab}" -- ${cur}) )
79 COMPREPLY=( $(compgen -W "${__ipython_complete_pylab}" -- ${cur}) )
80 elif [[ ${prev} == "--profile"* ]]; then
80 elif [[ ${prev} == "--profile"* ]]; then
81 if [ -z "$__ipython_complete_profiles" ]; then
81 if [ -z "$__ipython_complete_profiles" ]; then
82 __ipython_complete_profiles=$(cat <<EOF | python -
82 __ipython_complete_profiles=`cat <<EOF | python -
83 try:
83 try:
84 import IPython.core.profileapp
84 import IPython.core.profileapp
85 for k in IPython.core.profileapp.list_bundled_profiles():
85 for k in IPython.core.profileapp.list_bundled_profiles():
@@ -90,7 +90,7 b' try:'
90 except:
90 except:
91 pass
91 pass
92 EOF
92 EOF
93 )
93 `
94 fi
94 fi
95 local IFS=$'\t\n'
95 local IFS=$'\t\n'
96 COMPREPLY=( $(compgen -W "${__ipython_complete_profiles}" -- ${cur}) )
96 COMPREPLY=( $(compgen -W "${__ipython_complete_profiles}" -- ${cur}) )
General Comments 0
You need to be logged in to leave comments. Login now