create the following Launcher:
run command: ls *
build command: ls *
then invoke Run=>Launcher
you will see the very different output
workaround is to specify Buld command as
sh -e "ls *"
We need to resolve inconsistency
fixed in enum, branch release82, change set 67fa7447a26c
Integrated into 'main-silver', will be available in build *201612030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Alexander Simon <firstname.lastname@example.org>
Log: fixed Bug #269165 [launchers] buildCommand is not consistent with runCommand in Launchers
(transplanted from 67fa7447a26cd5e10601ed3b37a82737ae05f080)
Verified in internal NetBeans 8,2 patch 1 build.