on master help sign in
command: Fix ob shell to support arbitrary shell commands again
commit3bef1810369ff72f2b5e965491e5b89a7eb2d80c authorElliot Cameron <eacameron@gmail.com> dateThu 14 May 2020, 16:34 (6 years ago) parentd97c3ad
1 file changed+1−1
lib/command/src/Obelisk/Command.hs+1−1
lib/command/src/Obelisk/Command.hs+1−1
@@ -398,7 +398,7 @@ ob = \case
398398 ObCommand_Repl interpretPathsList -> withInterpretPaths interpretPathsList runRepl
399399 ObCommand_Watch interpretPathsList -> withInterpretPaths interpretPathsList runWatch
400400 ObCommand_Shell (ShellOpts shellAttr interpretPathsList cmd) -> withInterpretPaths interpretPathsList $ \root interpretPaths ->
401− nixShellForInterpretPaths False shellAttr root interpretPaths (bashEscape <$> cmd)
401+ nixShellForInterpretPaths False shellAttr root interpretPaths cmd -- N.B. We do NOT bash escape here; we want to run the command as-is
402402 ObCommand_Doc shellAttr pkgs -> withInterpretPaths [] $ \root interpretPaths ->
403403 nixShellForInterpretPaths True shellAttr root interpretPaths $ Just $ haddockCommand pkgs
404404 ObCommand_Hoogle shell' port -> withProjectRoot "." $ \root -> do