bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: argve0, psfool


From: Pádraig Brady
Subject: Re: argve0, psfool
Date: Mon, 25 Feb 2008 11:30:09 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Andreas Schwab wrote:
> Andreas Schwab <address@hidden> writes:
> 
>> Brian Dessent <address@hidden> writes:
>>
>>> "Daniel C. Bastos" wrote:
>>>
>>>> I always miss these two programs on every system I meet. argv0 is very
>>>> handy when dealing with programs that care about argv[0] and psfool is
>>>> essential when giving out passwords through the command line. I figure
>>>> these two should be in coreutils.
>>> perl -e 'exec { "real" } "fake", "arg1", "arg2"'
>> bash -c 'exec -a "$0" "$@"' real fake arg1 arg2
> 
> That should of course be:
> 
> bash -c 'exec -a "$0" "$@"' fake real arg1 arg2

I think that should be?

bash -c 'exec -a "$@"' fake real arg1 arg2

Anyway, why would one use an argve0 tool rather than use a symlink?
A real example would be great.

thanks,
Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]