Skip to main content
9 events
when toggle format what by license comment
Dec 23, 2012 at 1:03 comment added Emanuel Berg OK, I see, haha :) The purpose of the script, if you check out the link in the first comment, is to create a text file with some info on the system. I'll refer to that file when someone asks for example "What window manager do you use?", also, I print the commands so that that person can see not only the information, but also the exact way by which I got it.
Dec 23, 2012 at 0:48 comment added watael (printing on screen is really resource consuming, and slows script execution; it wastes time, that's what I meant). Don't you do so to debug your script? to see what it does, when, etc? Then set -x is probably better.
Dec 23, 2012 at 0:41 comment added watael ah, ok! you misunderstood me: you don't waste my time, you uselessly occupy the resources of the machine for printing such informations.
Dec 23, 2012 at 0:26 comment added Emanuel Berg What on earth are you talking about?! 1. The script works exactly as intended with the eval solution, 2. ... which I thanked, if you read the comment above, 3. the moderators frequently remove greetings, so I've stopped using them, although I fail to see how that's a big issue, and 4. do you actually expect me to thank you after calling my question silly, and my wish to print information "a waste of time"?
Dec 23, 2012 at 0:14 comment added watael You ask. I answer. The answer is an opinion on how things should be handled, instead of your non-working, and counter-productive idea. Q&A can also show what are best practices, and tell what are worst. btw: no "hi", no "please", no "thanks"... do you think we owe you something? learn to live with others, that'll improve your coding too.
Dec 22, 2012 at 23:35 comment added Emanuel Berg @UlrichDangel: When I said I needed it, that referred to a general solution, as opposed to individual functions for all commands. As for eval, I don't know how that differs from backticks/$(), but if you care to explain why it is considered unsafe, sure, I'll change it.
Dec 22, 2012 at 23:35 review First posts
Dec 22, 2012 at 23:38
Dec 22, 2012 at 23:23 comment added Emanuel Berg You can take a look at the script in which I need this. So you see, individual functions is not an option. As for what you think is silly or not, that's irrelevant as this is a Q&A site. Downvote.
Dec 22, 2012 at 23:19 history answered watael CC BY-SA 3.0