in reply to Semicolon behaviour in system call
Windoze (Win7 in the example below) echo consumes everything on the command line unless it's quoted. Try:
c:\@Work\Perl\monks>echo "1 & echo 2 & echo 3" & echo two dos & echo t +hree "1 & echo 2 & echo 3" two dos three
MKS is intended to emulate *nix and is probably running in its *nix-ish shell, hence the *nix-ish behavior.
Update: Fixed command-line example code: && vice &.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Semicolon behaviour in system call
by casual_prgmr (Initiate) on Mar 27, 2014 at 19:02 UTC | |
by ikegami (Patriarch) on Mar 27, 2014 at 19:50 UTC | |
by casual_prgmr (Initiate) on Mar 28, 2014 at 18:16 UTC | |
by kcott (Archbishop) on Mar 27, 2014 at 19:33 UTC | |
by casual_prgmr (Initiate) on Mar 28, 2014 at 17:34 UTC | |
by ikegami (Patriarch) on Mar 28, 2014 at 17:42 UTC |