[commit: process] master: Add ., / to the list of characters that showCommandForUser allows unquoted (8d7a7c2)
Ian Lynagh
igloo at earth.li
Wed Sep 26 17:52:54 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/process
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/8d7a7c234e86aca4d54d55de92fb3a302fcf102b
>---------------------------------------------------------------
commit 8d7a7c234e86aca4d54d55de92fb3a302fcf102b
Author: Ian Lynagh <ian at well-typed.com>
Date: Tue Sep 25 23:12:25 2012 +0100
Add .,/ to the list of characters that showCommandForUser allows unquoted
>---------------------------------------------------------------
System/Process/Internals.hs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/System/Process/Internals.hs b/System/Process/Internals.hs
index 4f9159f..72e0bfd 100644
--- a/System/Process/Internals.hs
+++ b/System/Process/Internals.hs
@@ -598,7 +598,7 @@ translate str
| otherwise = '\'' : foldr escape "'" str
where escape '\'' = showString "'\\''"
escape c = showChar c
- goodChar c = isAlphaNum c || c == '-' || c == '_'
+ goodChar c = isAlphaNum c || c `elem` "-_.,/"
#endif
-- ----------------------------------------------------------------------------
More information about the Cvs-libraries
mailing list