Herculano Einloft [EMAIL PROTECTED] writes:
Em (02:25:11), Andreas Schwab escreveu:
Hey all,
$ if $(echo string /dev/null); then echo true; fi
true
This should be a syntax error
No, it is a perfectly valid command, syntactically. That the command
substitution expands to
Herculano Einloft [EMAIL PROTECTED] writes:
Hey all,
$ if $(echo string /dev/null); then echo true; fi
true
This should be a syntax error
No, it is a perfectly valid command, syntactically. That the command
substitution expands to nothing has no significance any more once the
command
On Saturday 15 April 2006 19:55, Herculano Einloft wrote:
$ if $(echo string /dev/null); then echo true; fi
true
This should be a syntax error, since
$ if; then echo true; fi
bash: syntax error near unexpected token `;'
the first command statement is more like:
if :; then echo true; fi
Em (21:43:32), Mike Frysinger escreveu:
On Saturday 15 April 2006 19:55, Herculano Einloft wrote:
$ if $(echo string /dev/null); then echo true; fi
true
This should be a syntax error, since
$ if; then echo true; fi
bash: syntax error near unexpected token `;'
the first command
Em (02:25:11), Andreas Schwab escreveu:
Herculano Einloft writes:
Hey all,
$ if $(echo string /dev/null); then echo true; fi
true
This should be a syntax error
No, it is a perfectly valid command, syntactically. That the command
substitution expands to nothing has no