In bash, I am not sure if my observation is correct. For most commands, option-like arguments, i.e. arguments that begin with --abc
or -a
, can be anywhere in the list of arguments to the command, while other arguments have some fixed position in the list of arguments.
I was wondering if there are some written/unwritten rules about this? Thanks!
grep
xD oh, andrsync
, andln
cp
,mv
,rsync
,ssh
,watch
,make
,find
... the list goes on.-a
,-b
,-c
, etc.