Redirect input to other file descriptor than stdin

This commit is contained in:
Alan Gomes
2020-07-27 21:06:13 -03:00
parent 4d26dab8aa
commit 7cd2eabd2d

View File

@@ -57,13 +57,13 @@ _remove() {
_excute() {
if [ -s ~/.aliasme/cmd ];then
while read line; do
while read -u9 line; do
if [ "$1" = "$line" ]; then
read line
read -u9 line
eval $line
return 0
fi
done < ~/.aliasme/cmd
done 9< ~/.aliasme/cmd
fi
return 1
}