I'm writing a Dockerfile
which I'm formatting using tabs (which I usually use everywhere).
But I've copied a multi-line command where the second line begins with two tab characters, i.e.:
apt-get -y update && \
apt-get -y install collectd \ # begin two tabs
The first line executes correctly but the second line tries to "autocomplete", show all possible commands, and then:
> stall collectd
# [ apt-get updating ]
bash: stall: command not found
I understand the "autocompleting" behaviour, but stall collectd
? Why does Bash eat the apt-get -y in
part?