Reputation
1,183
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 9
Newest
 Good Answer
Impact
~48k people reached

  • 0 posts edited
  • 6 helpful flags
  • 89 votes cast
Mar
16
revised Send command to the shell via Makefile
added 95 characters in body
Mar
15
answered Send command to the shell via Makefile
Feb
17
comment Is the $SHELL environment variable only for interactive shells?
I'd not be surprised if the vagueness of the specification is to gather for non Unix Posix implementations (such as those for VMS, Windows, ...) where having the normal command interpreter for the target may be what the user expects.
Feb
17
comment Is the $SHELL environment variable only for interactive shells?
"... If the alternate command interpreter did not follow the command line syntax specified in the Shell and Utilities volume of POSIX.1-2008, then changing SHELL would render system() non-conforming. This would affect applications that expected the specified behavior from system(), and since the Shell and Utilities volume of POSIX.1-2008 does not mention that SHELL affects system(), the application would not know that it needed to unset SHELL."
Feb
17
comment Is the $SHELL environment variable only for interactive shells?
BTW, rationale of system contains "One reviewer suggested that an implementation of system() might want to use an environment variable such as SHELL to determine which command interpreter to use. The supposed implementation would use the default command interpreter if the one specified by the environment variable was not available. This would allow a user, when using an application that prompts for command lines to be processed using system(), to specify a different command interpreter. Such an implementation is discouraged."
Feb
17
comment Is the $SHELL environment variable only for interactive shells?
@JoachimBreitner, note that usually make variables are initialized from environment variables (look at a reference for the details), but SHELL is special in that respect (at least for gnu make), it isn't initialized that way.
Feb
17
comment Is the $SHELL environment variable only for interactive shells?
gnu make does not use the environment variable SHELL (but it uses its own SHELL variable to get the shell to use if you set it). Is there variance in that behavior? A lot of people around me are using tcsh and I think it would have broken our makefiles when we were not yet standardized on gnu make and were using the makes provided by Sun, HP and IBM.
Jan
20
awarded  Good Answer
Dec
7
revised How works sed 's/ /\ /g'
added 254 characters in body
Dec
7
answered How works sed 's/ /\ /g'
Dec
1
comment path of folder within a folder in terminal
@EmmaTebbs, updated to keep the final /.
Dec
1
revised path of folder within a folder in terminal
Updated to complies with the added requirement in comment.
Dec
1
answered path of folder within a folder in terminal
Nov
27
comment How to create and use dynamic and static libraries in linux (c programming)?
@Dadam, I'm of the opinion that a link is not an answer... it would need at least to be introduced by a summary that I don't feel like writing.
Nov
27
comment How to create and use dynamic and static libraries in linux (c programming)?
A good, but probably too complete for you, reference is akkadia.org/drepper/dsohowto.pdf
Nov
27
comment Why is my IP resolved to 127.0.0.1 instead of the IP I have in the network?
I don't know how python handles sockets, but if you have a socket (that is a pair of ip, port), you should be able to get extract the ip part without having to pass by the host (which is needed for instance when there are several interfaces)
Sep
23
awarded  Yearling
Apr
16
answered non-breaking space sometimes appears in Geany (my standard text editor)
Feb
12
comment nvm command not available in bash script
I'd print the path in the script before calling nvm and check if it is correct.
Dec
5
comment Can't add keyboard layout on Debian remote desktop
The issue is not the VNC protocol, it is the implementation of Xvnc. I've not looked at this for years (that's why I didn't give an answer, I haven't done the minimal research to provide something more than an outdated recollection).