| LeoNerd | godzirra: er.. in the terminal, even |
| Ani-_ | godzirra: and it's not related to screen. It's your terminal (as LeoNerd just said) |
| Khisanth | dhar: it isn't great but not bad either :) |
| godzirra | Dear god, I love you guys. Thats caused me so many freaking headaches. |
| dhar | Khisanth: sometimes its the right tool for the job :) |
| Ani-_ | godzirra: ctrl + s = screen lock |
| godzirra | Got it. Thanks :) |
| Mooki_9384 | Ani-_: i dont get it ... quotemeta? |
| Ani-_ | Mooki_9384: perldoc -f quotemeta |
| LeoNerd | perldoc -f quotemeta |
| Khisanth | dhar: I don't care much for its memory usage though |
| Mooki_9384 | Ani-_: thx! |
| dhar | Khisanth: the thing that kills me is OO overload Khisanth: thing = ObjectFactory.createObjectCreator.SomeTypeofObject.circleJerk( thing ) my wrists have never hurt so much |
| Ani-_ | You don't like to type all that? |
| rindolf | Mooki_9384: don't use quotemeta. Mooki_9384: use String::ShellQuote |
| Mooki_9384 | rindolf: no? |
| rindolf | Mooki_9384: no, don't - it's not what it's intended for. |
| LeoNerd | I've never liked the whole "apply extra quoting" model |
| Khisanth | dhar: that is why you need an IDE! :P |
| LeoNerd | Why not just be immune from shell expansions in the first place? Namely; use my open() suggested above |
| Mooki_9384 | rindolf: ok.. but i cant get it to run.. pls a small example! |
| rindolf | Mooki_9384: first run urpmi perl-String-ShellQuote |
| LeoNerd | open( my $child, "|-", "program", @args ); my $s = join "", <$child>; |
| Mooki_9384 | rindolf: got it thanx! |
| rindolf | Mooki_9384: as root. |
| LeoNerd | ^-- @args gets passed directly to the execve() call Shell never comes close. No quoting required |
| rindolf | Mooki_9384: or do as LeoNerd said assuming you don't want to have special shell operations like pipelines, etc. |
| LeoNerd | Don't go sticking extra quoting in just so you can join them all into one string so that the shell can remove the quoting again and split the string and then run the command you wanted... Just run the command. |
| Mooki_9384 | LeoNerd: i wouldnt mind.. but now its got every space aeparated part of the var as a separate file passed to my command |
| LeoNerd | Yes. That's because of quoting So just follow my example |
| Mooki_9384 | rindolf: should i use shellquote and system? |