[ https://issues.apache.org/jira/browse/MYNEWT-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15433675#comment-15433675 ]
Christopher Collins commented on MYNEWT-361: -------------------------------------------- Thanks, Tim. I do see the same problematic behavior when using docker (in the below excerpt, I am using a script called "dnewt" rather than "newt"): {noformat} admin@bleh:~/ccollins/repos/mynewt/core$ dnewt target create nrf52_boot dnewt target set nrf52_boot app=@apache-mynewt-core/apps/boot dnewt target set nrf52_boot bsp=@apache-mynewt-core/hw/bsp/nrf52dk dnewt target set nrf52_boot build_profile=optimized Target targets/nrf52_boot successfully created admin@bleh:~/ccollins/repos/mynewt/core$ dnewt target show nrf52_boot targets/nrf52_boot {noformat} I verified that the dnewt script only gets executed once by inserting an 'echo' command before the docker command. The newt script (dnewt in this case) creates an interactive terminal in the docker environment and pipes stdin/stdout/stderr to/from the host. My guess is that the subsequent pasted lines get swallowed by the docker environment, rather than residing in the host's tty buffer. I don't have any ideas for fixing this, but let's definitely keep this bug open. This doesn't really solve your problem, but it might be helpful to know that you can issue multiple "target set" commands in a single newt invocation. For example: {noformat} admin@bleh:~/ccollins/repos/mynewt/core$ dnewt target set nrf52_boot app=apps/boot \ > > bsp=hw/bsp/nrf52dk \ > > build_profile=optimized Target targets/nrf52_boot successfully set target.app to apps/boot Target targets/nrf52_boot successfully set target.bsp to hw/bsp/nrf52dk Target targets/nrf52_boot successfully set target.build_profile to optimized {noformat} > Consecutive commands not run in terminal > ---------------------------------------- > > Key: MYNEWT-361 > URL: https://issues.apache.org/jira/browse/MYNEWT-361 > Project: Mynewt > Issue Type: Bug > Components: Newt > Affects Versions: v0_9_0 > Environment: Ubuntu 14.10 using the Docker version of newt > Reporter: Tim > Assignee: Christopher Collins > Priority: Minor > Fix For: v1_0_0_beta1 > > > Basically, paste a few newt commands into a terminal, like this: > newt target create nrf52_boot > newt target set nrf52_boot app=@apache-mynewt-core/apps/boot > newt target set nrf52_boot bsp=@apache-mynewt-core/hw/bsp/nrf52dk > newt target set nrf52_boot build_profile=optimized > My expected behaviour is that each one executes after the previous one has > finished. What actually happens is that only the first commands execute. The > others don't do anything (not even an error). > You can actually see this easier like this: > newt target show > newt target show > vs > newt target show && newt target show > If I paste this it works as expected, so I'm not sure what newt does > differently (does it fork and run in the background or something weird?) > sleep 1 > ls -- This message was sent by Atlassian JIRA (v6.3.4#6332)