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

后端 未结 7 1344
悲&欢浪女
悲&欢浪女 2020-12-08 10:15

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?

7条回答
  •  一生所求
    2020-12-08 11:09

    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].

提交回复
热议问题