mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Another round of minor tweaks and cleanups
Notable changes: - The typeset builtin's usage and error messages for incompatible options used with -f has been corrected to show that -t and -u can be used with -f. - In name.c, get rid of misleaadingly named Null static which is actually the empty string, not the null value. Replace with a new AltEmpty macro that is defined similarly to Empty. This is now also used in nvtype.c (re: de037b6e).
This commit is contained in:
parent
0602177646
commit
89cec81b32
17 changed files with 29 additions and 128 deletions
|
|
@ -325,15 +325,15 @@ x=abc
|
|||
[[ -v x[0] ]] || err_exit 'x[0] should be set'
|
||||
[[ ${x[0]+x} ]] || err_exit print '${x[0]+x} should be x'
|
||||
[[ -v x[3] ]] && err_exit 'x[3] should not be set'
|
||||
[[ ${x[3]+x} ]] && err_exit '${x[0]+x} should be Empty'
|
||||
[[ ${x[3]+x} ]] && err_exit '${x[0]+x} should be empty'
|
||||
unset x
|
||||
[[ ${x[@]+x} ]] && err_exit '${x[@]+x} should be Empty'
|
||||
[[ ${x[@]+x} ]] && err_exit '${x[@]+x} should be empty'
|
||||
unset x y z foo bar
|
||||
|
||||
{ x=$($SHELL -c '[[ (( $# -eq 0 )) ]] && print ok') 2> /dev/null;}
|
||||
[[ $x == ok ]] || err_exit '((...)) inside [[ ... ]] not treated as nested ()'
|
||||
|
||||
[[ -e /dev/fd/ ]] || err_exit '/dev/fd/ does not exits'
|
||||
[[ -e /dev/fd/ ]] || err_exit '/dev/fd/ does not exist'
|
||||
[[ -e /dev/tcp/ ]] || err_exit '/dev/tcp/ does not exist'
|
||||
[[ -e /dev/udp/ ]] || err_exit '/dev/udp/ does not exist'
|
||||
[[ -e /dev/xxx/ ]] && err_exit '/dev/xxx/ exists'
|
||||
|
|
|
|||
|
|
@ -317,6 +317,7 @@ rtests=(
|
|||
typeset -i i n
|
||||
n=${#rtests[@]}
|
||||
ulimit --cpu 3 2>/dev/null
|
||||
unset arr
|
||||
for ((i=0; i<n; i++))
|
||||
do
|
||||
got=$(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue