*** empty log message ***
This commit is contained in:
10
ase/test/awk/t10.awk
Normal file
10
ase/test/awk/t10.awk
Normal file
@ -0,0 +1,10 @@
|
||||
BEGIN
|
||||
{
|
||||
getline x < "abc"; /* open("abc", O_RDONLY|O_LARGEFILE) = 3 */
|
||||
print 10 >> "abc"; /* open("abc", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 4 */
|
||||
getline x < "abc";
|
||||
print x;
|
||||
close ("abc"); /* close(4) */
|
||||
print "hey"
|
||||
close ("abc"); /* close(3) */
|
||||
}
|
26
ase/test/awk/t9.awk
Normal file
26
ase/test/awk/t9.awk
Normal file
@ -0,0 +1,26 @@
|
||||
BEGIN
|
||||
{
|
||||
while (("xxx /p" | getline var) > 0) ;
|
||||
while (("dir /w" | getline var) > 0) ;
|
||||
while ((getline var < "t9.awk") > 0) ;
|
||||
|
||||
zzz = close ("xxx /p");
|
||||
/*
|
||||
while ("ls -l" | getline var)
|
||||
{
|
||||
"ls -l" | getline x;
|
||||
print var; print x;
|
||||
}
|
||||
|
||||
while (getline < "/etc/passwd")
|
||||
{
|
||||
print $0;
|
||||
}
|
||||
|
||||
while (getline x < "/etc/shadow")
|
||||
{
|
||||
print x;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
6
ase/test/awk/x.awk
Normal file
6
ase/test/awk/x.awk
Normal file
@ -0,0 +1,6 @@
|
||||
BEGIN
|
||||
{
|
||||
print 1
|
||||
|
|
||||
"test";
|
||||
}
|
Reference in New Issue
Block a user