Files
dotfiles/.bash/shell/complete-alias/tests/test_escape_function.sh
2026-04-21 11:19:45 +02:00

15 lines
457 B
Bash

#!/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