Some of these may be expected behavior.
In each case I'd like to know if that's the case.

1)
This worked up through the 2009-05-01 version:
[[ \] == [x\]y] ]] && print ok
It no longer works as of 2009-12-24.

2)
time | cat
-ksh: syntax error: `|' unexpected

3)
$ touch \#foo
$ ls #<tab>
expands to
$ ls #foo
I think a leading # in a word should be escaped in tab expansion.

4)
This works:
    unset a
    function x {
        nameref a=a
        (( $# > 0 )) && typeset -A a
        a['a b']=99
        print ${!a[*]}
    }
    x 1
    x
But if the print line is removed, it gives:
-ksh: x: line 4: a b: arithmetic syntax error

5)
This produces no output:
function foo { bar; }
function bar { env | grep FOO; }
FOO=x foo

6)
This printed "1" as of 2009-05-01, but now prints "( .=1 )":
function foo {
    nameref sizes=$1
    typeset -A -i sizes
    sizes[bar]=1
    print ${sizes[*]}
}
foo baz

7)
This gives a memory fault:
output=$(printf "%10000s"); [[ $output == *(?) ]]

8)
echo foo | od /dev/fd/0
od: /dev/fd/0: No such device or address
And perhaps related:
function ft { /bin/echo foo; }; : $(od <(ft))
foo

9)
Up through 2009-05-01, this printed 0; after that $i expands to nothing:
integer i; print $i

10)
Up through 2009-05-01, this did not produce an error:
nameref foo=bar; typeset -A foo; (( x=foo[a] ))
/bin/ksh: typeset: (
): arithmetic syntax error

11)
This doesn't work:
printf %b '\0'



        John
-- 
John DuBois     [email protected]   KC6QKZ/AE
I wish to God these calculations had been executed by steam. - Charles Babbage
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to