1,538 reputation
310
bio website
location Wrocław, Poland
age 27
visits member for 9 months
seen Feb 8 at 10:43
stats profile views 52

Oct
28
answered vim automatic substitution
Oct
15
awarded  Enlightened
Oct
15
awarded  Nice Answer
Oct
15
comment Library Migration
Keep in mind that compiling code with some library means using this library ABI. And function names are not the only thing that's part of the ABI. If, for example, some datatype struct was changed between versions, you code won't work. So it's not enough to be sure that the code have not used any function introduced in new version.
Oct
13
comment Command not found
Which distribition are you using?
Oct
11
comment How does “cp” handle open files?
@Stuffy: Keep in mind that it may not be really reliable if it's not run by root user (the same problem is with fuser of course) as this tool may not show all the files.
Oct
10
comment How does “cp” handle open files?
To do what exactly? To copy all the files except open ones? I don't think there is any easy way of doing this (other than writin your own script that uses fuser+cp. Such copy would really be very unreliable. It won't copy any file that is opened in text editor for example.
Oct
10
answered How does “cp” handle open files?
Oct
10
answered List info about files/directories with spaces
Oct
9
revised Delete the matching line and several more from a file
added 803 characters in body
Oct
9
revised Delete the matching line and several more from a file
added 803 characters in body
Oct
9
answered Delete the matching line and several more from a file
Oct
7
comment what is wrong with my simple choice menu script?
@Joe: Just note that export is not needed to set RUN=0. Indeed is better not to use it since we don't want to pollute environment of newly created processes. Especially since OP sources this script instead of running it as a new process.
Oct
7
comment what is wrong with my simple choice menu script?
@Nanda: Just keep in mind what sourcing your script means and what problems it can make. It basically runs all the lines of your script inside of your bash so it may change your environment etc.
Oct
7
revised what is wrong with my simple choice menu script?
added 148 characters in body
Oct
7
comment what is wrong with my simple choice menu script?
@Nanda: Read the note at the end of my answer.
Oct
7
comment what is wrong with my simple choice menu script?
@Nanda: Your while loop is endless so you won't go anyware. You can add pwd command at the end of the loop to see that the current directory has changed. Or you can use break statement to leave the loop (so yes, you should use break statement for this case).
Oct
7
revised what is wrong with my simple choice menu script?
added 213 characters in body
Oct
7
comment what is wrong with my simple choice menu script?
Then my answer below should be correct (and Julians answer too, as it's the same) and should fix your problem.
Oct
7
answered what is wrong with my simple choice menu script?