Re: function invoking alias fails if defined in same conditional

2012-03-17 Thread Eric Blake
On 03/16/2012 02:56 PM, gregrwm wrote: > a function invoking an alias works, unless they are defined within the same > conditional, eg: Thanks for the report, but this is not a bug. Remember, aliases affect parsing, so they can only be expanded during the parsing phase. But bash has to parse un

Re: function invoking alias fails if defined in same conditional

2012-03-17 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/17/12 8:09 AM, Eric Blake wrote: > On 03/16/2012 02:56 PM, gregrwm wrote: >> a function invoking an alias works, unless they are defined within the same >> conditional, eg: > > Thanks for the report, but this is not a bug. Remember, aliases aff

Re: function invoking alias fails if defined in same conditional

2012-03-17 Thread gregrwm
e&c- thanks for clarifying. -g "No culture can live, if it attempts to be exclusive." —*Gandhi*

Re: Saving command history for non-interactive shell

2012-03-17 Thread dethrophes
Am 16.03.2012 15:56, schrieb Greg Wooledge: On Fri, Mar 16, 2012 at 02:33:35PM +, Lars Peterson wrote: Is there a way to configure bash so that commands from a non-interactive shell are preserved in the history? I'm more interested in saving commands invoked via ssh vs shell scrpts. From C

Re: Saving command history for non-interactive shell

2012-03-17 Thread dethrophes
Am 17.03.2012 22:10, schrieb dethrophes: Am 16.03.2012 15:56, schrieb Greg Wooledge: On Fri, Mar 16, 2012 at 02:33:35PM +, Lars Peterson wrote: Is there a way to configure bash so that commands from a non-interactive shell are preserved in the history? I'm more interested in saving command