summaryrefslogtreecommitdiff
path: root/test/substr.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:45:40 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:45:40 +0300
commit558ba97bdeac5a68bb9248a5c4cdf2feeb24e771 (patch)
tree5c03c98edb9c5488103a6ffdef047e590e0b35b9 /test/substr.awk
parent8c042f99cc7465c86351d21331a129111b75345d (diff)
downloadgawk-558ba97bdeac5a68bb9248a5c4cdf2feeb24e771.tar.gz
Move to gawk-3.0.1.gawk-3.0.1
Diffstat (limited to 'test/substr.awk')
-rw-r--r--test/substr.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/substr.awk b/test/substr.awk
new file mode 100644
index 00000000..f330402c
--- /dev/null
+++ b/test/substr.awk
@@ -0,0 +1,5 @@
+BEGIN {
+ x = "A"
+ printf("%-39s\n", substr(x,1,39))
+ exit (0)
+}