Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2017 20:58:13 +0100
From:      Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
To:        freebsd-ports@freebsd.org
Subject:   Re: portmaster strange output after patch
Message-ID:  <fdabd2af-7547-da6a-e1ac-9caede870ab7@utanet.at>
In-Reply-To: <15dd43a3-5c71-17c5-f5bd-5c676a495bcb@utanet.at>
References:  <15dd43a3-5c71-17c5-f5bd-5c676a495bcb@utanet.at>

next in thread | previous in thread | raw e-mail | index | archive | help


On 15.12.2017 20:45, Walter Schwarzenfeld wrote:
> After recent patch, I had a strange output in my terminal with portmaster
>
> + trap trap_exit INT
> + umask 022
> + progcmd=/usr/local/sbin/portmaster
> + progname=portmaster
> + realpath /usr/local/sbin/portmaster
> + program=/usr/local/sbin/portmaster
> + [ -z '' ]
> + PM_PARENT_PID=40170
> + : /tmp
> + /bin/mkdir -p /tmp
> + UPGRADE_TOOL=portmaster
> + PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
> + [ -e /usr/X11R6 ]
> + [ -n '' -a -z '' ]
> + export PM_PARENT_PID TMPDIR UPGRADE_TOOL PATH
> + [ -r /etc/portmaster.rc ]
> + set -o allexport
> + [ -s /usr/local/etc/portmaster.rc ]
> + [ -s /usr/local/sbin/portmaster.rc ]
> + [ -s /root/.portmasterrc ]
> + set +o allexport
> + set
> + my_environment='DISPLAY=:0
> HOME=/root
> IFS='\''
> '\''
> LANG=de_DE.UTF-8
> LC_MESSAGES=C
> LOGNAME=root
> MAIL=/var/mail/root
> OPTIND=1
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
> PM_PARENT_PID=40170
> PPID=40169
> PS1='\''# '\''
> ......
>
>
> has someone other the same problem?
>
> If I remove the patch, all works normal.
>
It was the shebang

-#!/bin/sh
+#!/bin/sh -x

please remove the -x

greetings
Walter Schwarzenfeld




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fdabd2af-7547-da6a-e1ac-9caede870ab7>