- Jun
- 762
- 16
Is it legal to use brackets around argument variables? While trying to solve Vince's grep alias problem, I experimented with the following command-line definitions:
When I run
alias alias1=`echo %1`
alias alias2=`echo %[1]`
alias alias2=`echo %[1]`
When I run
alias1 test & alias2 test
I get the following output:
test
test
Note that the version with the brackets produces a leading space.test