RE: 'subprocess.check_output' extra new line?

2013-01-04 Thread sbremal
Very good point, you are absolutely right: # cygpath C:\\ | od -c 000 / c y g d r i v e / c \n 014 'bash' manual also confirms it: Command Substitution Command substitution allows the output of a command to replace the command name. There are two

'subprocess.check_output' extra new line?

2013-01-04 Thread sbremal
Hi I wonder if the additional new line charachter at the end of the standard output capture is on purpose with 'subprocess.check_output'? >>> subprocess.check_output([ 'cygpath', 'C:\\' ]) '/cygdrive/c\n' If I do the same from the shell there is no extra new line (which is correct I believe):