You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in the file cabal-install/bash-completion/cabal that
causes incomplete and potentially dangerous commands to be executed when
the shell is requested to complete them.
Typing in cabal run --, adding an argument to the end and
trying to complete it by hitting Tab twice triggers the bug.
The behavior is as follows.
$ cat > Main.hs
module Main where
import System.Environment
main :: IO ()
main = getArgs >>= putStrLn . ("(" ++) . (++ ")") . unwords
$ cabal init --is-executable --non-interactive
Guessing dependencies...
Generating LICENSE...
Warning: unknown license type, you must put a copy in LICENSE yourself.
Generating Setup.hs...
Generating bug.cabal...
Warning: no synopsis given. You should edit the .cabal file and add one.
You may want to edit the .cabal file and add a Description field.
$ touch LICENSE
$ cabal run -- bug with arguments
(with Running bug-0.1.0.0... for
--list-options) arguments bug...
Preprocessing bug executable
$ cabal run -v0 -- bug with arguments
(with --list-options) arguments
The text was updated successfully, but these errors were encountered:
There is a bug in the file
cabal-install/bash-completion/cabal
thatcauses incomplete and potentially dangerous commands to be executed when
the shell is requested to complete them.
Typing in
cabal run --
, adding an argument to the end andtrying to complete it by hitting Tab twice triggers the bug.
The behavior is as follows.
The text was updated successfully, but these errors were encountered: