about summary refs log tree commit diff
path: root/Test/B03print.ztst
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-08-01 21:33:49 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-08-01 21:33:49 +0000
commit730b7d8c2fafe199435591e36a21e73004e16b84 (patch)
treefed6e88ead5da906478809da0469db37c22c556d /Test/B03print.ztst
parentce743b792006c38a92108ea824eeaad37f333143 (diff)
downloadzsh-730b7d8c2fafe199435591e36a21e73004e16b84.tar.gz
zsh-730b7d8c2fafe199435591e36a21e73004e16b84.tar.xz
zsh-730b7d8c2fafe199435591e36a21e73004e16b84.zip
- Improved how we check the no-newline test cases.
- Added a test case for "echo -n".
Diffstat (limited to 'Test/B03print.ztst')
-rw-r--r--Test/B03print.ztst30
1 files changed, 17 insertions, 13 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst
index a18a826b3..93cb9ea89 100644
--- a/Test/B03print.ztst
+++ b/Test/B03print.ztst
@@ -175,9 +175,13 @@
 >21
 >43
 
- printf '%1$*2$d' 1 2 3 4 5 6 7 8 9 10;echo
+ printf '%1$*2$d' 1 2 3 4 5 6 7 8 9 10; echo .EoL.
 0:reuse of specified arguments 
-> 1   3     5       7         9
+> 1   3     5       7         9.EoL.
+
+ echo -n 'Now is the time'; echo .EoL.
+0:testing -n with echo
+>Now is the time.EoL.
 
  printf '%1$0+.3d\n' 3
 0:flags mixed with specified argument
@@ -185,31 +189,31 @@
 
 # Test the parsing of the \c escape.
 
- echo '1 2!\c3 4' a b c d; echo
+ echo '1 2!\c3 4' a b c d; echo .EoL.
 0:Truncating first echo arg using backslash-c
->1 2!
+>1 2!.EoL.
 
- echo a b '1 2?\c5 6' c d; echo
+ echo a b '1 2?\c5 6' c d; echo .EoL.
 0:Truncating third echo arg using backslash-c
->a b 1 2?
+>a b 1 2?.EoL.
 
- printf '1 2!\n\c3 4'
+ printf '1 2!\c3 4'; echo .EoL.
 0:Truncating printf literal using backslash-c
->1 2!
+>1 2!.EoL.
 
- printf '%s %b!\n\c%s %s' 1 2 3 4 5 6 7 8 9
+ printf '%s %b!\c%s %s' 1 2 3 4 5 6 7 8 9; echo .EoL.
 0:Truncating printf format using backslash-c
->1 2!
+>1 2!.EoL.
 
  printf '%s %b!\c%s %s' '1\c' '2\n\c' 3 4 5 6 7 8 9
 0:Truncating printf early %b arg using backslash-c
 >1\c 2
 
- printf '%s %b\n' '1\c' 2 3 4 5 '6\n\c' 7 8 9
+ printf '%b %b\n' 1 2 3 4 '5\c' 6 7 8 9; echo .EoL.
 0:Truncating printf late %b arg using backslash-c
->1\c 2
+>1 2
 >3 4
->5 6
+>5.EoL.
 
 # The following usage, as stated in the manual, is not recommended and the
 # results are undefined. Tests are here anyway to ensure some form of