Skip to main content
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
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
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 not deleted user 605055

The shell is Unix's command-line interface. You can type commands in a shell interactively, or write scripts to automate tasks. Use this tag for questions applying to /bin/sh and most compatible shells (ash, bash, ksh, zsh, …). For shell scripts with errors, please check them in http://shellcheck.net before posting here.

6 votes
1 answer
236 views

Dynamics between parameter expansion and arithmetic expansion in echo $a$((a=2))$a

Shell is: GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) I'm considering the following command line: a=1; echo $a$((a=2))$a The output is: 122 I deduct that the expansion is processed in the … If my understand is correct, that processing order means that the shell circles back to parameter expansion after having proceeded to arithmetic expansion. …
yossi-matkal's user avatar