diff --git a/shelly.cabal b/shelly.cabal
--- a/shelly.cabal
+++ b/shelly.cabal
@@ -1,6 +1,6 @@
 Name:       shelly
 
-Version:     1.3.0.2
+Version:     1.3.0.3
 Synopsis:    shell-like (systems) programming in Haskell
 
 Description: Shelly provides convenient systems programming in Haskell,
diff --git a/src/Shelly.hs b/src/Shelly.hs
--- a/src/Shelly.hs
+++ b/src/Shelly.hs
@@ -249,7 +249,8 @@
     return . lineSeqToText
 
 lineSeqToText :: Seq Text -> Text
-lineSeqToText = T.intercalate "\n" . toList
+-- extra append puts a newline at the end
+lineSeqToText = T.intercalate "\n" . toList . flip (|>) ""
 
 type FoldCallback a = (a -> Text -> a)
 
