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

后端 未结 7 1345
悲&欢浪女
悲&欢浪女 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 10:50

    Just for the record, even though it does not exactly answer the original poster's question, this is something trivial to do with zsh:

    ARGV0=emacs nethack
    

提交回复
热议问题