Reputation
1,812
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 17
Newest
 Cleanup
Impact
~26k people reached

3h
answered Purpose of permissions such as 111 or 333
1d
answered Output Output of command to command line directly, NOT variable
1d
asked Using directive and namespace aliasing with Ksh
1d
comment Shell namespaces
Excellent! Thanks!
1d
accepted Shell namespaces
1d
revised Shell namespaces
added 424 characters in body
1d
revised Shell namespaces
added 106 characters in body
1d
comment Shell namespaces
@michas I would need to namespace function symbols and aliases too. env | sed ... would work for variables, I could do set to get functions, but the search and replace would be a problem -- functions can call each other and you so you'd need to replace the all the cross invocations with prefixed cross invocations but without replacing the same words elsewhere in the function definition code, where it isn't an invocation. For that you'd need a bash parser, not just a regex, and it would still only work as long as the functions didn't call each other via eval.
1d
comment Shell namespaces
@mikeserv Thanks, if you add it as an answer with a code example that demonstrates the functionality, I'll accept it.
1d
revised Shell namespaces
added 189 characters in body
1d
asked Shell namespaces
Jun
28
comment Issue an error when using empty shell variables
@mikeserv OK :D But it's still got to be a DIRECTORY symlink.
Jun
28
comment Issue an error when using empty shell variables
@mikeserv All you gotta do to prove me wrong is give one single example of a non-zero-length PROJECT_HOME that isn't a directory for which rm -r $PROJECT_HOME/* can succeed.
Jun
23
comment Can I resume make after a Ctrl+C?
I'd leave it on over the night, though.
Jun
23
comment Can I resume make after a Ctrl+C?
Yes, you can. That's what make is for -- finished stuff doesn't get recompiled if it doesn't need to be.
Jun
22
comment In a loop over an array, add an element to the array
I don't see why you'd want to append sbin in the loop though. Appending it just once kind of makes more sense: array+=(sbin); for i in ...
Jun
22
comment In a loop over an array, add an element to the array
Use two for loops then. First peform your additions, then loop over the result.
Jun
22
revised In a loop over an array, add an element to the array
added 98 characters in body
Jun
22
answered In a loop over an array, add an element to the array
Jun
22
revised How to find the next available file suffix (file_a.txt file_b.txt etc)
added 128 characters in body