fix cd when user assigns a value to OLDPWD; fix android issue with blocked system calls; fix historical use of test -t; fix issue with foreground-TSTP async jobs

This commit is contained in:
Chet Ramey
2023-07-10 09:41:30 -04:00
parent 6cca378e82
commit 2f09fa19cf
17 changed files with 555 additions and 351 deletions
+12 -6
View File
@@ -279,18 +279,24 @@ b ( 1 = 2
./test.tests: line 26: test: (: unary operator expected
2
t -t a
1
./test.tests: line 26: test: a: integer expected
2
t -t addsds
1
./test.tests: line 26: test: addsds: integer expected
2
t -t 42
1
t -t /dev/tty
1
./test.tests: line 26: test: /dev/tty: integer expected
2
t -t /dev/tty4
1
./test.tests: line 26: test: /dev/tty4: integer expected
2
t -t /dev/tty4444444...
1
1
./test.tests: line 26: test: /dev/tty4444444...: integer expected
2
./test.tests: line 26: test: : integer expected
2
t -p /dev/fd/6
1
t -p /dev/fd/6
+4
View File
@@ -49,6 +49,10 @@ fff
x=10 fff
x=1 fff
x=4 fff2
# set this because variable assignments preceding functions should never
# persist after the function returns, no matter what a builtin inside the
# function does to them
x=4
x=11 fff3
echo after fff3: x=$x
x=12 fff4