⚡ refacts bash/profile setup
This commit is contained in:
14
.bash/shell/complete-alias/tests/test_escape_function.sh
Normal file
14
.bash/shell/complete-alias/tests/test_escape_function.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
## ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
## test escaped command in alias body; complete with function;
|
||||
##
|
||||
## . test_escape_function.sh
|
||||
## test_escape_function <tab>
|
||||
##
|
||||
## ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
|
||||
complete -F _known_hosts '/tmp/aaa\ \ \ bbb'
|
||||
alias test_escape_function='/tmp/aaa\ \ \ bbb'
|
||||
complete -F _complete_alias test_escape_function
|
||||
|
||||
Reference in New Issue
Block a user