Re: Suggestion for .bashrc

2022-01-04 Thread Matthew Persico
On Fri, Dec 31, 2021 at 10:33 AM Greg Wooledge wrote: > On Thu, Dec 30, 2021 at 08:46:16PM -0800, Kevin O'Gorman wrote: > > So I propose extending the stanza near the end of .bashrc: > > if [ -f ~/.bash_aliases ]; then > > . ~/.bash_aliases > > fi > > That code was written by your operating

Re: Suggestion for .bashrc

2022-01-10 Thread Matthew Persico
On Tue, Jan 4, 2022 at 3:38 PM Greg Wooledge wrote: > On Tue, Jan 04, 2022 at 03:34:05PM -0500, Matthew Persico wrote: > > On Fri, Dec 31, 2021 at 10:33 AM Greg Wooledge > wrote: > > > You can edit the file yourself and make it work however you like. You > > >

Re: Feature request

2022-01-13 Thread Matthew Persico
> > On 1/11/22 6:24 AM, Tathastu Pandya via Bug reports for the GNU Bourne > Again SHell wrote: > > Just as PROMPT COMMAND thats get executed every time before any commamd. > Is there a way to execute predefined command after every command is > executedeg. Automatically record the exit status of cu

Re: Patch for autoload.v3 to allow export of function

2017-07-01 Thread Matthew Persico
Greetings! I have finally gotten around to working on autoload again to ensure that there are no issues. But I have a question about the _AUTOLOADS array, which is used to track what has been autoloaded and is the source of information for the -p command. The code executes a linear scan of the ar

Re: Patch for autoload.v3 to allow export of function

2017-08-11 Thread Matthew Persico
So, before I post code here, what say you all? Is the idea of doing this code injection so hideous that it would never be accepted, or is it worth submitting the code for perusal? Thank you for your time, On Sun, Jul 2, 2017 at 12:50 PM, Chet Ramey wrote: > On 7/1/17 5:50 PM, Matthew Pe

Re: Patch for autoload.v3 to allow export of function

2017-08-15 Thread Matthew Persico
Please see the attached 'autoload.v4' and 'autoload.v4.t'. On Mon, Aug 14, 2017 at 10:30 AM, Chet Ramey wrote: > On 8/11/17 6:55 PM, Matthew Persico wrote: > > > What I propose to do between steps 2 and 3 is > > > > 2.1 - After sourcing the function i

Re: Patch for autoload.v3 to allow export of function

2017-08-17 Thread Matthew Persico
It has finally occurred to me after 24 hours that attachments are pretty useless in this forum. I will repost this evening with the contents in the mail body. And, since this is not longer a patch but really a rerwite, I'll use a fresh thread. On Wed, Aug 16, 2017 at 1:56 AM, Matthew Pe

Dashes in function names: Undocumented?

2020-08-12 Thread Matthew Persico
I put a bug report into an emacs group because the bash syntax highlighter failed to recognize functions whose names have dashes in them. The maintainer came back with this: I can reproduce this behaviour, but is it really a bug? Aren't the names with '-' invalid? The Bash Reference Manual says:

Re: Dashes in function names: Undocumented?

2020-08-12 Thread Matthew Persico
On Wed, Aug 12, 2020 at 11:06 AM Eli Schwartz wrote: > On 8/12/20 10:51 AM, Matthew Persico wrote: > > I put a bug report into an emacs group because the bash syntax > highlighter > > failed to recognize functions whose names have dashes in them. > > > > The

Patch for autoload.v3 to allow export of function

2017-02-08 Thread Matthew Persico
I would like to submit a patch to the autoload.v3 script. The modification would allow the export of the autoloaded function to subshells. autoload() would now take a -x option, pass it into _aload() which would then make the approrpiate calls to export -f. Where should it be discussed and how d