mirror of
https://github.com/Jintin/aliasme.git
synced 2025-12-05 18:57:18 -06:00
Redirect input to other file descriptor than stdin
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user