Hi, when running
R --file=~/test.R --args -i -j -k with R from math/R in ports and test.R as commandArgs(TRUE) Sys.sleep(10) ps output displays /usr/local/lib/R/bin/exec/R --file=/home/user/test.R --args --args --args --args (Note the four --args.) However, R appears to have the right arguments (the first --args is deliberately ignored by R): R> commandArgs(TRUE) [1] "-i" "-j" "-k" Any ideas why the display of the arguments in ps differs from the command line? With a simple shell script I cannot reproduce this. E.g., ./test.sh --args -i -j -k with test.sh as #!/bin/sh echo $@ sleep 10 results in ps displaying /bin/sh ./test.sh --args -i -j -k Best regards, Ingo