Search code examples
bashargvps

How to change argv0 in bash so command shows up with different name in ps?


In a C program I can write argv[0] and the new name shows up in a ps listing.

How can I do this in bash?


Solution

  • I've had a chance to go through the source for bash and it does not look like there is any support for writing to argv[0].