disable glob expansion in summary composition
This commit is contained in:
parent
eb82854cc0
commit
7c5b6db116
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,8 @@ oldnew=0
|
||||||
summary() {
|
summary() {
|
||||||
i=0
|
i=0
|
||||||
for m in $(\ls -1r ${inbox}/new/*); do
|
for m in $(\ls -1r ${inbox}/new/*); do
|
||||||
|
# disable glob expansion
|
||||||
|
set -f
|
||||||
# if there are more than 3 new messages,
|
# if there are more than 3 new messages,
|
||||||
# just hint that there is more
|
# just hint that there is more
|
||||||
i=$((i + 1))
|
i=$((i + 1))
|
||||||
|
@ -47,6 +48,8 @@ summary() {
|
||||||
set -- $subject
|
set -- $subject
|
||||||
shift
|
shift
|
||||||
echo ": \"${@}\""
|
echo ": \"${@}\""
|
||||||
|
#reenable glob expansion
|
||||||
|
set +f
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue