How to pass empty string to program's argv[0] ?

Ilya Basin basinilya@gmail.com
Wed Jan 5 10:43:00 GMT 2011


$ sh -c "exec -a '' bash -s a b c"
echo "0: '$0'"; echo "1: '$1'"
0: ''
1: 'a'

I want similar output from bash under gdb



More information about the Gdb mailing list