This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


$ 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]