349 reputation
27
bio website
location
age
visits member for 3 years, 6 months
seen May 17 at 21:53

May
17
comment Retrieve the window name and role
Does X require every window to have those attributes? If you don't see them when running xprop on them then it may be the case that they're just missing for those windows.
Nov
14
comment Easiest way to find/replace in a file using a list?
@Omnifarious: Just what the regex matches
Nov
12
comment Easiest way to find/replace in a file using a list?
@ChrisDown: Sorry about that, I've rephrased, think it's clearer now.
Aug
17
comment How to have find only search for files in changed directories?
For clarity I ended up doing two finds with a loop, but I used the maxdepth trick on the inner find so they're functionally the same. Thanks :)
May
22
comment Is there any book , Tutorial on very very advanced shell scripting
It's possible to use bash securely? :P
May
7
comment Can I have my shell history record how wildcards expanded?
@Caleb: I'm assuming such a shell would only be part of a larger system where what the user can do is fairly controlled by other means already. I didn't mean to imply a custom shell by itself would accomplish anything security wise ;p
May
5
comment Can I have my shell history record how wildcards expanded?
@Giles: When I said make a shell I meant create a whole new one from scratch, where you'd have to build in limitations to prevent that sort of thing. You're definitely right that writing a fool proof config is probably impossible.
May
1
comment Can I have my shell history record how wildcards expanded?
If nobody adds another answer in a few days I'll mark as accepted, I think you're right. It would be interesting to try to make a shell where the history was more suitable for assisting with audits.
Apr
27
comment Forcing an 'added' alias to every command
If you're using zsh there is an even better way to do it. The REPORTTIME environment variable when set will output the execution time info (as if you had run the command with 'time' in front of it) for any command taking longer than $REPORTTIME seconds. Just set it to 0 and it should tell you the time for every command, with the user/sys breakdown to boot.