diff options
| author | SZEDER Gábor <szeder.dev@gmail.com> | 2017-08-08 20:23:53 +0200 |
|---|---|---|
| committer | SZEDER Gábor <szeder.dev@gmail.com> | 2017-08-08 23:41:28 +0200 |
| commit | a80518e308ab910a90ea0cef1e46a29800edd9a9 (patch) | |
| tree | 37f3ff94283dbc60a73ea25418fb857eb6af037b /examples/README.md | |
| parent | c116e48418004e6f2538f711b63abc128c26245c (diff) | |
Quote the prefix tag in the space_pad_to function
POSIX shells treat an unquoted [abcd] as a pattern bracket expression
and apply it for filename expansion. This kicks in and causes
troubles in the space_pad_to function when it's called to pad prefix
tags like '[AUTODETECT]', because the argument holding such a tag is
passed to a shell unquoted. The result is funny output when the
directory containing the Makefile also contains any files or
directories, whose name is a single upper-case character that can be
found in any prefix tags:
$ touch A B C D
$ make
-------------------------
Arduino.mk Configuration:
- A C D CURRENT_OS = LINUX
- [USER] ARDUINO_DIR = /home/szeder/src/arduino/arduino-1.8.1
- [USER] ARDMK_DIR = /home/szeder/src/arduino/Arduino-Makefile
- A C D ARDUINO_VERSION = 181
- A D ARCHITECTURE = avr
- A D ARDMK_VENDOR = arduino
- A D ARDUINO_SKETCHBOOK =
<snip>
Prevent this by quoting space_pad_to's parameter when passing it to a
shell.
Diffstat (limited to 'examples/README.md')
0 files changed, 0 insertions, 0 deletions
