[Top][All Lists]

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

BASH_ARG[CV] and functions

From: Sven Wegener
Subject: BASH_ARG[CV] and functions
Date: Mon, 28 Nov 2005 10:12:16 +0100
User-agent: Mutt/1.5.11

Hi all!

Short question concerning BASH_ARG[CV] and function execution. According to the
info manual and man pages, the arguments of functions should be pushed onto the
named arrays. But this doesn't happen currently, only for the source built-in.
I tracked the problem down to the lines around 3212 and 3264 in
execute_function() in execute_cmd.c:

  /* Update BASH_ARGV and BASH_ARGC */
  if (debugging_mode)
    push_args (words->next);


  /* Restore BASH_ARGC and BASH_ARGV */
  if (debugging_mode)
    pop_args ();

The debugging_mode check should be removed, or the info manual and man
pages need to be adjusted to represent the current behaviour.


Sven Wegener
Gentoo Developer

Attachment: pgpdeHDr8YTW_.pgp
Description: PGP signature

reply via email to

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