From: shubham sharma <shubhamsharma4060@gmail.com>
To: "brian m. carlson" <sandals@crustytoothpaste.net>,
shubham sharma <shubhamsharma4060@gmail.com>,
git@vger.kernel.org
Subject: Re: waitpid errors with shell aliases
Date: Tue, 25 Oct 2022 15:17:28 +0530 [thread overview]
Message-ID: <CADUYy5sv-rc-hRB9xV2uK05k+S2G7AADiA9w6iD8pzoYMPQqGw@mail.gmail.com> (raw)
In-Reply-To: <Y1XcQctK/SkDZCbt@tapette.crustytoothpaste.net>
Hi,
/bin/sh -> GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu)
OS -> Arch Linux
Kernel: Linux 5.4.86-1-lts
Architecture: x86-64
git -> git version 2.30.0
Thanks,
Shubham
On Mon, Oct 24, 2022 at 5:58 AM brian m. carlson
<sandals@crustytoothpaste.net> wrote:
>
> On 2022-10-21 at 09:26:11, shubham sharma wrote:
> > Hi,
> >
> > I am using git shell aliases in config and was facing some weird
> > error. The error is not reproducible in all runs and occurs randomly
> > between runs...consider the minimal config(alias section) below for
> > usage idea:
> >
> > [alias]
> > A = "!f(){ \
> > ( \
> > // implementation
> > git \"$1\"; \
> > ) 250<dir/tmp; \
> > }; f"
> > B = "!f(){ \
> > ssh <server> <command>; \
> > }; f"
> > C= "!f(){ \
> > git A B; \
> > }; f"
> >
> > when firing "git C" from shell,in some cases(not deterministically reproducible)
> > i observed weird waitpid errors of the type :
> >
> > error: waitpid for f(){ ssh <server> <command>; }; f
> > failed: No child processes
> > fatal: while expanding alias 'B': 'f(){ ssh <server> <command>;
> > }; f': No child processes
> > error: waitpid for f(){ (//implementation; git "$1"; )250<dir/tmp;
> > }; f failed: No child processes
> > fatal: while expanding alias 'A': 'f(){ (//implementation; git
> > "$1"; )250<dir/tmp; }; f': No child processes
> > error: waitpid for f(){ git A B; }; f failed: No child processes
> > fatal: while expanding alias 'C': 'f(){ git A B; }; f': No
> > child processes
> >
> > can anyone please help as to what could possibly be the reason for this?
>
> Could you tell us what OS and version of Git you're running, and what
> shell /bin/sh is? I could imagine that there might be some weirdness on
> Windows with the shell, but I would find an ECHILD to be surprising on
> Unix.
> --
> brian m. carlson (he/him or they/them)
> Toronto, Ontario, CA
prev parent reply other threads:[~2022-10-25 9:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-21 9:26 waitpid errors with shell aliases shubham sharma
2022-10-24 0:28 ` brian m. carlson
2022-10-25 9:47 ` shubham sharma [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADUYy5sv-rc-hRB9xV2uK05k+S2G7AADiA9w6iD8pzoYMPQqGw@mail.gmail.com \
--to=shubhamsharma4060@gmail.com \
--cc=git@vger.kernel.org \
--cc=sandals@crustytoothpaste.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).