bug-bash
[Top][All Lists]
Advanced

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

How can I find the -c argument?


From: Paul D. Smith
Subject: How can I find the -c argument?
Date: 15 Apr 2005 12:17:31 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

This isn't a bug, actually.  I'm wondering if there's any way to access
the string provided with the -c option to the shell, from within the
shell init files.


For example, if I run this;

    bash --login -c 'echo hi'

How can I find the string 'echo hi' from within my ~/.bash_profile?  I
tried the obvious but it isn't in $@ and it's not sitting in stdin
waiting for me.  Is there any way to retrieve that string from within my
shell setup?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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