aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-08-08 12:17:54 +0100
committerRon Yorston <rmy@pobox.com>2024-08-08 12:24:28 +0100
commite90345c1048f2c53074a1bd88e7870ee6a452b01 (patch)
tree08fd6ce81f7f322df21e0f2d7b7e7cd44f12cd61 /shell
parentc7f8fcfb3e26067019de01fdeeffd1ab556f73b9 (diff)
downloadbusybox-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