We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ExtendedDefaultRules #-} {-# OPTIONS_GHC -fno-warn-type-defaults #-} import Shelly import qualified Data.Text as T import qualified System.IO default (T.Text) main = do System.IO.hSetBuffering System.IO.stdout System.IO.LineBuffering shelly $ verbosely $ do escaping False $ run "echo" ["He says: \"huh?\""] escaping True $ run "echo" ["He says: \"huh?\""]
outputs:
echo 'He says: "huh?"' He says: huh? echo 'He says: "huh?"' He says: "huh?"
verbosely says that they will do the same thing, (echo 'He says: "huh?"'), but they are not.
verbosely
echo 'He says: "huh?"'
The text was updated successfully, but these errors were encountered:
Yeah, the command printer does not take into account the escaping setting.
Sorry, something went wrong.
No branches or pull requests
The following code
outputs:
verbosely
says that they will do the same thing, (echo 'He says: "huh?"'
), but they are not.The text was updated successfully, but these errors were encountered: