diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Revision history for futhark-server
 
+## 1.4.1.1 -- 2026-08-20
+
+* Fixed bug in `cmdShape` which would read only first line from the server.
+
 ## 1.4.1.0 -- 2026-05-14
 
 * Added `cmdZip` and `cmdUnzip`.
diff --git a/futhark-server.cabal b/futhark-server.cabal
--- a/futhark-server.cabal
+++ b/futhark-server.cabal
@@ -1,6 +1,6 @@
 cabal-version:      2.4
 name:               futhark-server
-version:            1.4.1.0
+version:            1.4.1.1
 synopsis: Client implementation of the Futhark server protocol.
 
 description: Provides an easy way to interact with a running Futhark
diff --git a/src/Futhark/Server.hs b/src/Futhark/Server.hs
--- a/src/Futhark/Server.hs
+++ b/src/Futhark/Server.hs
@@ -512,7 +512,7 @@
 
 -- | @shape v@
 cmdShape :: Server -> VarName -> IO (Either CmdFailure [Int])
-cmdShape s v = fmap (map (read . T.unpack) . T.words) <$> sendCommandSL s "shape" [v]
+cmdShape s v = fmap (map (read . T.unpack) . foldMap T.words) <$> sendCommand s "shape" [v]
 
 -- | @set v0 v1 i0 ... iN-1@
 cmdSet :: Server -> VarName -> VarName -> [Int] -> IO (Maybe CmdFailure)
