ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Nazarov Denis <nenderus@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Steam и Bash4
Date: Fri, 01 Sep 2017 02:24:08 +0300
Message-ID: <4315099.Ah0qkOb4Eh@nenderus-pc.localdomain> (raw)
In-Reply-To: <20170831230125.GA4645@celery>

В письме от пятница, 1 сентября 2017 г. 2:01:27 MSK пользователь Alexey 
Tourbin написал:

> Можно пропатчить /bin/bash.
> 
> --- bash-3.2.57/shell.c-	2017-09-01 01:11:07 +0300
> +++ bash-3.2.57/shell.c	2017-09-01 01:28:39 +0300
> @@ -448,6 +448,13 @@ main (argc, argv, env)
>    this_command_name = shell_name;	/* for error reporting */
>    arg_index = parse_shell_options (argv, arg_index, argc);
> 
> +  if (arg_index < argc && !want_pending_command /* not -c */ &&
> +      strstr(argv[arg_index], "/Steam/steam.sh"))
> +    {
> +      execv("/bin/bash4", argv);
> +      fprintf(stderr, "execv /bin/bash4 failed: %m");
> +    }
> +
>    /* If user supplied the "--login" (or -l) flag, then set and invert
>       LOGIN_SHELL. */
>    if (make_login_shell)
> 
> Хорошо работает!
> 
> $ pwd
> .../BUILD/bash-3.2.57/build-bash
> $ cat ./Steam/steam.sh
> echo $BASH_VERSION
> $ ./bash -c 'echo $BASH_VERSION ./Steam/steam.sh'
> 3.2.57(10)-release ./Steam/steam.sh
> $ ./bash './Steam/steam.sh'
> 4.2.50(1)-release
Тогда у bash3 будет зависимость на bash4 же... Какой-то изврат получается...

  reply	other threads:[~2017-08-31 23:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-31 21:30 Nazarov Denis
2017-08-31 21:33 ` Paul Wolneykien
2017-08-31 21:57   ` Nazarov Denis
2017-08-31 22:03     ` Paul Wolneykien
2017-08-31 23:18       ` Nazarov Denis
2017-08-31 23:01 ` Alexey Tourbin
2017-08-31 23:24   ` Nazarov Denis [this message]
2017-08-31 23:27   ` Hihin Ruslan

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4315099.Ah0qkOb4Eh@nenderus-pc.localdomain \
    --to=nenderus@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git