diff options
author | Ron Yorston <rmy@pobox.com> | 2024-08-08 12:17:54 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-08-08 12:24:28 +0100 |
commit | e90345c1048f2c53074a1bd88e7870ee6a452b01 (patch) | |
tree | 08fd6ce81f7f322df21e0f2d7b7e7cd44f12cd61 /shell | |
parent | c7f8fcfb3e26067019de01fdeeffd1ab556f73b9 (diff) | |
download | busybox-w32-e90345c1048f2c53074a1bd88e7870ee6a452b01.tar.gz busybox-w32-e90345c1048f2c53074a1bd88e7870ee6a452b01.tar.bz2 busybox-w32-e90345c1048f2c53074a1bd88e7870ee6a452b01.zip |
make: allow empty commands
pdpmake didn't allow rules to have empty commands. There are
circumstances where this may be useful.
Make the following changes:
- Add a flag to readline() to indicate the next line is expected
to be a command. If this flag is true and the input line starts
with a tab return it immediately, thus skipping the check for
an empty line or comment line.
- In docmds() skip tabs and spaces after a command prefix. If the
resulting command is empty don't print it or try to execute it.
- In newcmd() allow empty commands.
Adds 48-96 bytes.
(pdpmake GitHub issue 56)
Diffstat (limited to 'shell')
0 files changed, 0 insertions, 0 deletions