Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 106512

Questions about shell scripts, executable files that are interpreted by a shell (bash, zsh, etc.).

4
votes
1answer
I'm try to understand the classic service script /usr/sbin/service which has a line of code: exec env -i ...... ${SERVICE} ..... I know the exec command doesn't fork, and will retain the process a …
asked Feb 24 '16 by lovespring
47
votes
4answers
I've noticed that { can be used in brace expansion: echo {1..8} or in command grouping: {ls;echo hi} How does bash know the difference?
asked Jan 10 '16 by lovespring
38
votes
2answers
In bash scripting: we create variable by just naming it: abc=ok or we can use declare declare abc=ok what's the difference? and why does bash make so many ways to create a variable?
asked Jan 10 '16 by lovespring