git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: shubham sharma <shubhamsharma4060@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: waitpid errors with shell aliases
Date: Mon, 24 Oct 2022 00:28:49 +0000	[thread overview]
Message-ID: <Y1XcQctK/SkDZCbt@tapette.crustytoothpaste.net> (raw)
In-Reply-To: <CADUYy5vwfOJOFBQ+zUmkrsxGO=E9N5vUbsVRgjBn_MMY2X6H=A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

  reply	other threads:[~2022-10-24  0:28 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 [this message]
2022-10-25  9:47   ` shubham sharma

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=Y1XcQctK/SkDZCbt@tapette.crustytoothpaste.net \
    --to=sandals@crustytoothpaste.net \
    --cc=git@vger.kernel.org \
    --cc=shubhamsharma4060@gmail.com \
    /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).