Newest at the top
2025-02-12 23:27:42 +0100 | <tomsmeding> | I don't think "you'll need to compromise on windows anyway" is an argument for putting this through a shell on non-windows |
2025-02-12 23:27:09 +0100 | <geekosaur> | which puts limits on what cabal-install or the Cabal library (as "personified" by Setup.hs) can pull off even at best |
2025-02-12 23:27:01 +0100 | <tomsmeding> | so you'll have to use whatever syntax the callee is going to parse |
2025-02-12 23:26:39 +0100 | <tomsmeding> | because windows has no concept of separate arguments whatsoever in the first place |
2025-02-12 23:26:27 +0100 | <tomsmeding> | okay passing separate arguments on windows is a trainwreck anyway |
2025-02-12 23:26:02 +0100 | <geekosaur> | basically it's a trainwreck no matter what you do |
2025-02-12 23:25:42 +0100 | <geekosaur> | right, but the problem there is there's no exec() on Windows and CreateProcess passes a single string, not a list |
2025-02-12 23:25:41 +0100 | <monochrom> | Why is JSON valid Javascript syntax? Because initially someone just wanted to eval() it. |
2025-02-12 23:25:05 +0100 | <tomsmeding> | monochrom: what does JSON have to do with shells? :P |
2025-02-12 23:24:55 +0100 | <tomsmeding> | if nothing else because various systems have various different shells that do different unexpected things |
2025-02-12 23:24:52 +0100 | <monochrom> | How JSON was invented... :) |
2025-02-12 23:24:27 +0100 | <tomsmeding> | putting user input through a shell is almost always a mistake |
2025-02-12 23:24:08 +0100 | <tomsmeding> | if they're _really_ interpreted by a shell, I'd argue that's a design bug |
2025-02-12 23:23:45 +0100 | <tomsmeding> | geekosaur: are the "quotes" interpreted by a shell or by Setup.hs? Telling signs for the _latter_ are that 'single quotes' don't work, and $() also doesn't |
2025-02-12 23:23:03 +0100 | <geekosaur> | that said, part of the problem here is there's no guarantee any of this would work on Windows |
2025-02-12 23:22:30 +0100 | foul_owl | (~kerry@193.42.0.124) (Ping timeout: 244 seconds) |
2025-02-12 23:21:46 +0100 | machinedgod | (~machinedg@d108-173-18-100.abhsia.telus.net) (Ping timeout: 244 seconds) |
2025-02-12 23:21:42 +0100 | <tomsmeding> | --ghc-options accepts the quotes halfway down the option |
2025-02-12 23:21:33 +0100 | <tomsmeding> | right |
2025-02-12 23:21:02 +0100 | <geekosaur> | quotes around the whole option, because it's not trying to be a shell parser |
2025-02-12 23:20:42 +0100 | <geekosaur> | IWBNI if it at least did what cabal files allow in a number of places: `--repl-options='"-ghci-script=hi there.ghci"'` (yes, I tested that this still doesn't work) |
2025-02-12 23:19:57 +0100 | Vajb | (~Vajb@85-76-36-81-nat.elisa-mobile.fi) |
2025-02-12 23:17:03 +0100 | <tomsmeding> | but I think it's good if the docs describe the end result |
2025-02-12 23:16:44 +0100 | <tomsmeding> | I don't know what atrocities the thing I pass to --repl-options goes through, but that's not my responsibility |
2025-02-12 23:16:27 +0100 | <tomsmeding> | I know how my shell works :p |
2025-02-12 23:15:50 +0100 | <tomsmeding> | merijn: $ touch 'hi there.ghci'; cabal repl --repl-options='-ghci-script="hi there.ghci"' # -> ... Warning: ignoring unrecognised input `there.ghci"' |
2025-02-12 23:14:59 +0100 | tnt2 | tnt1 |
2025-02-12 23:14:59 +0100 | tnt1 | (~Thunderbi@user/tnt1) (Ping timeout: 260 seconds) |
2025-02-12 23:14:38 +0100 | <tomsmeding> | euouae: thanks :) |
2025-02-12 23:14:35 +0100 | <merijn> | the does not accept quotes seems suspect, as the quotes generally are eaten by the shell, no? |
2025-02-12 23:14:25 +0100 | <euouae> | tomsmeding: I say go ahead, I can't review further because I have some stuff to do away from computer now |
2025-02-12 23:13:57 +0100 | tnt2 | (~Thunderbi@user/tnt1) tnt1 |
2025-02-12 23:13:38 +0100 | <tomsmeding> | github (tm) |
2025-02-12 23:13:35 +0100 | <tomsmeding> | ah yes |
2025-02-12 23:13:29 +0100 | <merijn> | ah, no the ...was part of the url xD |
2025-02-12 23:13:19 +0100 | <tomsmeding> | merijn: doesn't for me |
2025-02-12 23:12:59 +0100 | <merijn> | tomsmeding: that shows empty? |
2025-02-12 23:12:54 +0100 | <tomsmeding> | euouae: no thanks this is great |
2025-02-12 23:12:48 +0100 | <tomsmeding> | --PROG-options has OPTS, so let's use that |
2025-02-12 23:12:40 +0100 | <euouae> | :< am I too nitpicky |
2025-02-12 23:12:29 +0100 | <tomsmeding> | lol |
2025-02-12 23:12:22 +0100 | <euouae> | right now it has the singular form FLAG |
2025-02-12 23:12:18 +0100 | <euouae> | or even =OPTIONS |
2025-02-12 23:12:15 +0100 | <euouae> | tomsmeding: --repl-options=FLAGS is better |
2025-02-12 23:11:29 +0100 | <tomsmeding> | shall I PR this? |
2025-02-12 23:11:25 +0100 | <tomsmeding> | merijn: euouae: I further clarified the "quoting" behaviour https://github.com/tomsmeding/cabal/compare/595d0238c97e6e63d992f35f2047691da2460602...options-docs |
2025-02-12 23:11:07 +0100 | <monochrom> | Ah OK. Back in my days it was always monad. :) |
2025-02-12 23:10:45 +0100 | <tomsmeding> | magic_rb: nice :) |
2025-02-12 23:10:18 +0100 | <tomsmeding> | it's actually `traverse` |
2025-02-12 23:10:15 +0100 | <tomsmeding> | monochrom: it's just the observation that surprisingly often, when you're looking for something that does this particular combination of fmap and sequence, or perhaps concatMap, or perhaps yet some other thing that looks totally different |