mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
fix 24 more typos found with the help of codespell
(cherry picked from commit a92198bc5f196ec1b4a34dc042ff3a594e316ad7)
This commit is contained in:
parent
7003aba487
commit
482d1c3dd6
19 changed files with 24 additions and 24 deletions
|
@ -675,7 +675,7 @@ typeset -a arr=( ( 1 2 3 ) ( 4 5 6 ) ( 7 8 9 ))
|
|||
typeset -n ref=arr[1]
|
||||
[[ $ref == 4 ]] || err_exit '$ref should be 4'
|
||||
[[ ${ref[@]} == '4 5 6' ]] || err_exit '${ref[@]} should be "4 5 6"'
|
||||
[[ $ref == "${arr[1]}" ]] || err_exit '$ref shuld be ${arr[1]}'
|
||||
[[ $ref == "${arr[1]}" ]] || err_exit '$ref should be ${arr[1]}'
|
||||
[[ ${ref[@]} == "${arr[1][@]}" ]] || err_exit '${ref[@]} should be ${arr[1][@]}'
|
||||
|
||||
function fun2
|
||||
|
|
|
@ -59,10 +59,10 @@ rksh -c '[[ -o restricted ]]' || err_exit 'restricted option not set'
|
|||
[[ $(rksh -c 'print hello') == hello ]] || err_exit 'unable to run print'
|
||||
check_restricted /bin/echo || err_exit '/bin/echo not resticted'
|
||||
check_restricted ./echo || err_exit './echo not resticted'
|
||||
check_restricted 'SHELL=ksh' || err_exit 'SHELL asignment not resticted'
|
||||
check_restricted 'PATH=/bin' || err_exit 'PATH asignment not resticted'
|
||||
check_restricted 'FPATH=/bin' || err_exit 'FPATH asignment not resticted'
|
||||
check_restricted 'ENV=/bin' || err_exit 'ENV asignment not resticted'
|
||||
check_restricted 'SHELL=ksh' || err_exit 'SHELL assignment not resticted'
|
||||
check_restricted 'PATH=/bin' || err_exit 'PATH assignment not resticted'
|
||||
check_restricted 'FPATH=/bin' || err_exit 'FPATH assignment not resticted'
|
||||
check_restricted 'ENV=/bin' || err_exit 'ENV assignment not resticted'
|
||||
check_restricted 'print > file' || err_exit '> file not restricted'
|
||||
> empty
|
||||
check_restricted 'print <> empty' || err_exit '<> file not restricted'
|
||||
|
|
|
@ -654,7 +654,7 @@ test1
|
|||
test2
|
||||
|
||||
|
||||
# Test visibilty of "global" vs. "static" variables. if we have a "static" variable in a
|
||||
# Test visibility of "global" vs. "static" variables. if we have a "static" variable in a
|
||||
# function and "unset" it we should see a global variable with the same
|
||||
# name, right ?
|
||||
integer hx=5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue