--0016365ee6b693c8be04a5ecb55e Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jun 17, 2011 at 11:16 AM, Chad Perrin <code / apotheon.net> wrote: > On Sat, Jun 18, 2011 at 03:03:50AM +0900, Michael Edgar wrote: > > On Jun 17, 2011, at 1:49 PM, Chad Perrin wrote: > > > > > > If a program is executed using an alias from within a Unix shell, for > > > instance, I want the alias name. > > > > In bash, `alias` is a builtin; these aliases are expanded by the shell > > before the program begins execution. I'm afraid what you wish for is > > not feasible. > > I was afraid of that. Thanks. > > You could always have your alias add an option for you to identify itself - i.e. alias x uby y.rb --alias John --0016365ee6b693c8be04a5ecb55e--