[haskell-platform] #204: Spaces in username causes cobal errors

haskell-platform haskell-platform at projects.haskell.org
Fri Aug 3 22:30:51 BST 2012


#204: Spaces in username causes cobal errors
------------------------------+---------------------------------------------
 Reporter:  egwor             |       Owner:              
     Type:  defect            |      Status:  new         
 Priority:  major             |   Milestone:              
Component:  (none-specified)  |    Keywords:  cobal spaces
------------------------------+---------------------------------------------
 ''Hopefully I've come to the right place! ''

 '''Issue'''

 {{{
 pwd
 /Users/egwor (new)

 }}}
 Since there's a space in the directory name there's an issue when trying
 to run cabal update
 {{{

  cabal update
 /usr/bin/cabal: line 115: [: /Users/egwor: binary operator expected
 }}}


 Looking at the code, should the ${cabal_config} be in inverted commas??

 {{{
 112 CONFIG_END
 113     fi
 114
 115     if [ \! -e ${cabal_config} ]
 116     then
 }}}

 changes to
 {{{
 112 CONFIG_END
 113     fi
 114
 115     if [ \! -e "${cabal_config}" ]
 116     then
 }}}

-- 
Ticket URL: <http://trac.haskell.org/haskell-platform/ticket/204>
haskell-platform <http://trac.haskell.org/haskell-platform>
The Haskell Platform: a comprehensive and robust collection of Haskell libraries


More information about the Haskell-platform mailing list