diff options
author | Rory Dudley | 2024-03-30 22:34:38 -0600 |
---|---|---|
committer | Rory Dudley | 2024-03-30 22:34:38 -0600 |
commit | 75872c78614abbdfec6b5fdd5ada1292d76fd5d8 (patch) | |
tree | 0c3d21b62752b447f5a8290e9740fd1de7ffc858 /src/recite/parse.rs | |
parent | b02576d3a00f182394be4bc41a26de50e4b64078 (diff) | |
download | dwarvish-75872c78614abbdfec6b5fdd5ada1292d76fd5d8.tar.gz |
Fix a subtle bug when running interal poems
This patch fixes a bug for internal poems, where the output would always
get split on newlines, regardless of the verse's verb. This breaks
things like 'export DIR=`ls`', since output from `ls` might have
newlines, meaning that $DIR will only contains the first item from the
`ls` command. This will only perform the newline split when sending the
output to a non-builtin command.
Notes
Notes:
This fix works for export (and alias), but could cause issues with other
builtins in the future. Worth keeping an eye on this, as this probably
isn't a perfect solution.
Diffstat (limited to 'src/recite/parse.rs')
0 files changed, 0 insertions, 0 deletions