Which symbol is used with the set command for command substitution?

Thê Hy

New member
Which symbol is used with the set command for command substitution?
A. –
B. —
C. ??
D. _
 
Answer: b
Explanation: set statement can also be used for command substitution. There can be a problem especially when the output of the command begins with a-.It may happen that set interprets it as an option. To avoid this condition, we have to use — (double hyphen) immediately after set. For example,
Code:
$ set -- `ls -lfile01`        //first - now taken care of
 

Tìm kiếm

Back
Top