From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 25A003858415; Wed, 9 Mar 2022 14:13:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25A003858415 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/102664] contrib/gcc-git-customization.sh uses echo -n, which isn't portable Date: Wed, 09 Mar 2022 14:13:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: easyhack X-Bugzilla-Severity: trivial X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2022 14:13:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102664 --- Comment #32 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #30) > I'd have done printf "%s [%s]?" "$question" "$default" instead, but they'= re > equivalent. Oops, equivalent except for the missing space after the question mark in my version. There are still other issues on Solaris though: $ PATH=3D/usr/xpg4/bin:$PATH ./contrib/gcc-git-customization.sh=20 Your name [Jonathan Wakely]?=20 Your email address (for git commits) [jwakely@redhat.com]?=20 Local name for upstream repository [origin]?=20 sed: illegal option -- r Usage: sed [-n] script [file...] sed [-n] [-e script]...[-f script_file]...[file...] Account name on gcc.gnu.org (for your personal branches area) [remote_id]? = redi ./contrib/gcc-git-customization.sh[16]: eval[1]: =3Dredi: not found [No suc= h file or directory] Local branch prefix for personal branches you want to share (local branches starting / can be pushed directly to your personal area on the gcc server) [me]?=20 Install prepare-commit-msg git hook for 'git commit-mklog' alias [yes]?=20 fatal: ambiguous argument 'hooks': unknown revision or path not in the work= ing tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' cp: illegal option -- git-path cp: Insufficient arguments (1) Usage: cp [-f] [-i] [-p] [-@] [-/] f1 f2 cp [-f] [-i] [-p] [-@] [-/] f1 ... fn d1 cp -r|-R [-H|-L|-P] [-f] [-i] [-p] [-@] [-/] d1 ... dn-1 dn install: cp --git-path /export/home/jwakely/src/gcc/contrib/prepare-commit-msg/--git-path failed=20 sed: illegal option -- r Usage: sed [-n] script [file...] sed [-n] [-e script]...[-f script_file]...[file...] Setting up tracking for personal namespace in remotes/users/me fatal: Invalid refspec '+refs/users//heads/*:refs/remotes/users/me/*' I'll look into those ...=