From owner-freebsd-current@freebsd.org Fri Apr 14 13:47:40 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67499D3DD2E for ; Fri, 14 Apr 2017 13:47:40 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 38D94AEE for ; Fri, 14 Apr 2017 13:47:40 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x22f.google.com with SMTP id k87so90749237ioi.0 for ; Fri, 14 Apr 2017 06:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject :content-transfer-encoding; bh=Hi8qkINTqO5xzMeVdN6zeQWcrLtq2sYTfGqm/SCBB14=; b=gJk6XpaeO9/97aSCXg5WMuxH7usOcuXPo3ETLISee0YiC5m8N8vXUlaXAkMNYIuYxm +2hA/tV8EIQcjY7JijYGTzQuKzMSK5+VNQImMLkHEw3qu/BRu2LgakrIOcBJXO22e+sF kIRSgt//o/uuQATlBKSYSLGF0V02QaOfWMg+dPlqWFta9JSurR7a1QcxCkKPGt2I+41I QEwlp/bkgwRsFvGnHSIyKtPenFHIcC8zT+AfUSLE0RwJOFrOY7PPHALo0BEd9mVjQOb1 g28TLFhiclT0Yf60pocARmi+GmfNCD5FePunr7hgxP0QxC1GVf/ETurlzt0+jYlg19Eq 3x+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-transfer-encoding; bh=Hi8qkINTqO5xzMeVdN6zeQWcrLtq2sYTfGqm/SCBB14=; b=IRV0yZyAIrnSSnPmJlcuZMPECa/QzupLAFIT98yVqlXWLaMsuKKpOaEzgpbE0jfDf/ qib55c9KzhbGl6MyKdERTYUPWsQPwPuH/DBu40GimIfdELU6o47wm0n5qPkQiQeqXS/T /u+6DPUR3QqIS7Xq72677my2htbvuNN2pAcTSHwD0E2L+JclOsIbHyuNAgyWqx1U78hY 46W2XvXRNTetQ1V9fNrvb/HCEA/amysivK5PpQC/qJwJ1p+Ed3HhZ9TF2rPl3in7oTLz pp/sOeJc4uswjfgpmWzpuglGWByZy3iuAXTFLURGjpEyWwUOLmFAO2LzgX6o6SptU3NV 1MuQ== X-Gm-Message-State: AN3rC/5JbTZTMvrSeYCDphlM3f16mxM5DgKnABvw5jIpYO38Au1ymkxa 1O/M8okAfDVpy2Bx X-Received: by 10.107.12.167 with SMTP id 39mr10901075iom.28.1492177659491; Fri, 14 Apr 2017 06:47:39 -0700 (PDT) Received: from [10.0.10.3] (cpe-74-141-88-57.neo.res.rr.com. [74.141.88.57]) by smtp.googlemail.com with ESMTPSA id p70sm816345itg.0.2017.04.14.06.47.38 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Apr 2017 06:47:39 -0700 (PDT) Message-ID: <58F0D301.7000509@gmail.com> Date: Fri, 14 Apr 2017 09:47:45 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: FreeBSD current Subject: csh script help Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 13:47:40 -0000 To aid in debugging the script I'm writing, I place "echo" commands throughout so I can kind of have a trace of the logic as different conditions are processed. Normally I just delete these "echo" commands after I get the script working. But this time I want to try something different. I want to enable/disable the echo commands in mass. So in the beginning of the script I added these 2 lints. #trace="" # use to enable trace echo trace="#" # use to disable trace echo In front of each of the echo commands I added this, $trace echo "what ever." When I exec the script I get error message #: not found What is happing here? Is the substitution to late? Is there a way to fix this? Thanks for your help