hello,
is there a working "case insensitive" (i in ksh88 test? or I can only use other commands for testing (eg. grep -i)?
in ksh93 I get it working:
Code:
# ksh93
# A=tRee;B=Tree;[[ "${A}" = @(${B}) ]] && echo yes || echo not
not
# A=tRee;B=tRee;[[ "${A}" = @(${B}) ]] && echo yes || echo not
yes
# A=tRee;B=Tree;[[ "${A}" = @(~(i:${B})) ]] && echo yes || echo not
[red]yes[/red]
#
in ksh88:
Code:
# A=tRee;B=Tree;[[ "${A}" = @(${B}) ]] && echo yes || echo not
not
# A=tRee;B=tRee;[[ "${A}" = @(${B}) ]] && echo yes || echo not
yes
# A=tRee;B=Tree;[[ "${A}" = @(~(i:${B})) ]] && echo yes || echo not
[red]not[/red]