portmaster strange output after patch

Walter Schwarzenfeld w.schwarzenfeld at utanet.at
Fri Dec 15 19:58:17 UTC 2017



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



More information about the freebsd-ports mailing list