Date: Mon, 9 Oct 2017 12:46:36 +0000 (UTC) From: Paul Pathiakis <pathiaki2@yahoo.com> To: Warren Block <wblock@wonkity.com>, Paul Schmehl <pschmehl_lists@tx.rr.com> Cc: Polytropon <freebsd@edvax.de>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Scripting problem Message-ID: <1984508980.4145408.1507553196491@mail.yahoo.com> In-Reply-To: <alpine.BSF.2.21.1710090615040.94613@wonkity.com> References: <7AB396F429EEB6890100F082@Pauls-MacBook-Pro.local> <VI1PR02MB1200B33C1F59A223B84E9153F6770@VI1PR02MB1200.eurprd02.prod.outlook.com> <8C8E7D66788801594EC0FC4C@Pauls-MacBook-Pro.local> <20171008100017.30ab5987.freebsd@edvax.de> <88D321A2CCD516AEF39DE8C3@Pauls-MacBook-Pro.local> <alpine.BSF.2.21.1710090615040.94613@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
=20 Quoting is sh's biggest weakness.=C2=A0 Well, that and lack of basic data= =20 structures, and the weak logical structures, and so on. ### Well, yes and no.=C2=A0 I consider it both a strength and a weakness. I= find sh to be exactly what I think of a scripting language to be... glue.= =C2=A0 I don't expect to write a fully versed program in sh.=C2=A0 I wouldn= 't be using sh for that.=C2=A0 I find sh to be that 'tool' to use when I wa= nt to call other tools and utilities.=C2=A0 (sed, awk, tr, etc)=C2=A0 ### I think people have gone way too far in creating 'scripting' languages = that are more programming languages than scripting.... Personally, I tried = learning PERL which tries to be everything to regex.=C2=A0 The problem?=C2= =A0 Lack of coherence... "I can do this 5 different ways in PERL"=C2=A0 Is = that supposed to be a good thing when all five seem to execute at different= speeds, using different resources, etc? (apologies to Larry Wall and the r= est) ### Again, this comes back to "Cathedral and Bazaar".... just because you c= an deviate from proven practices and procedures to do something 'creative' = or 'different'=C2=A0 is not necessarily a good thing.=C2=A0 In fact, it can= be a detriment.=C2=A0 Bourne shell continues to live a very healthy life.= =C2=A0 PERL seems to be dying and there's a huge amount of code around writ= ten by people who didn't know the reasons behind using one tool or another = and really didn't understand software engineering, how to write a proper pr= ogram, execution times, etc.=C2=A0 (Everyone I come in contact with... I pr= each 'portability'.=C2=A0 Sh runs everywhere and is POSIX.=C2=A0 BASH is a = superset and using it's extended features can make it non-portable and BASH= is not the default everywhere.=C2=A0 If I take a Bash script and try to ru= n it under sh... it breaks most of the time.=C2=A0 I have only had 1-2 time= s where a bourne shell would not run under BASH. Someone once said that if a script is longer than twenty lines or so, it=20 probably ought to be done in a real scripting langugage.=C2=A0 That was me,= =20 but Stephen Bourne has also said it.=C2=A0 Yes, that Stephen Bourne. ### I'll go off a little on this with kind of a corollary....=C2=A0 No sh s= cript should be more than 20 lines, however, I typically will call shell sc= ripts from other scripts.=C2=A0 But I do agree, if you want to program, use= a programming language.=C2=A0 (IMHO, C is still the best, most powerful la= nguage around but, again, read a book, talk to the people who are in the kn= ow - My 'C' guru is a guy who has written code that utterly shocked me in i= ts elegance, execution, and simplicity - and the occasional "You can do som= ething like that in C?" thoughts running through my head.) #### and, again, this is just my very humble opinion.=C2=A0 I'm not a great= programmer, but I know a little C and sh.... _______________________________________________ freebsd-questions@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org= " =20 From owner-freebsd-questions@freebsd.org Mon Oct 9 13:44:51 2017 Return-Path: <owner-freebsd-questions@freebsd.org> Delivered-To: freebsd-questions@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 08CF6E30B45 for <freebsd-questions@mailman.ysv.freebsd.org>; Mon, 9 Oct 2017 13:44:51 +0000 (UTC) (envelope-from j.geering@btinternet.com) Received: from rgout0702.bt.lon5.cpcloud.co.uk (rgout0702.bt.lon5.cpcloud.co.uk [65.20.0.142]) by mx1.freebsd.org (Postfix) with ESMTP id E62DF1546 for <freebsd-questions@freebsd.org>; Mon, 9 Oct 2017 13:44:49 +0000 (UTC) (envelope-from j.geering@btinternet.com) X-OWM-Source-IP: 207.242.201.20 (US) X-OWM-Env-Sender: j.geering@btinternet.com X-Junkmail-Premium-Raw: score=8/50, refid=2.7.2:2017.10.9.131816:17:8.129, ip=, rules=__HAS_MSGID, __SANE_MSGID, __HAS_FROM, __FRAUD_WEBMAIL_FROM, __TO_MALFORMED_2, __TO_NO_NAME, DATE_TZ_NA, __CT, __CTYPE_MULTIPART_ALT, __CTYPE_HAS_BOUNDARY, __CTYPE_MULTIPART, __HAS_X_MAILER, __MIME_VERSION, MIME_LOWER_CASE, __MIME_TEXT_P2, __MIME_TEXT_H2, __ANY_URI, __URI_NO_MAILTO, __URI_NO_WWW, __HAS_HTML, HTML_NO_HTTP, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_2000_2999, BODYTEXTH_SIZE_10000_LESS, __MIME_TEXT_H1, __MIME_TEXT_P1, __MIME_HTML, __TAG_EXISTS_HTML, __RATWARE_SIGNATURE_3_N1, __SXL_SIG_TIMEOUT[05a8dbb5854cf6a75464f37fffff665f.sig.cal1.sophosxl.com], BODY_SIZE_5000_LESS, __FRAUD_WEBMAIL, __MIME_TEXT_H, __MIME_TEXT_P, NO_URI_HTTPS, BODY_SIZE_7000_LESS Received: from minerva (207.242.201.20) by rgout07.bt.lon5.cpcloud.co.uk (9.0.019.13-1) (authenticated as j.geering@btinternet.com) id 598528DE0661F77F for freebsd-questions@freebsd.org; Mon, 9 Oct 2017 14:38:26 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com; s=btcpcloud; t=1507556690; bh=7/XTI+UY5OTAnNC83EPB/oFIFkvTnHOcG9+ASxNkEr0=; h=Message-ID:Subject:From:To:Date:X-Mailer:Mime-Version; b=RhKrPwgv2YNEMLmA0pjiB6PQiKeS0UL4BTdy4SpWtAf6VNn1F5uHq/olU+sJnRck/3DJcLy/XyuWhwLcLuyxgkoQWgQWzjnrR/5EllwoxbyU//qaLjFIeg8eP7TqYG/XtK/TaommleoapjWLofixg4cgYB4h7L/8tEEb0nqf1i8= Message-ID: <1507556303.29148.15.camel@btinternet.com> Subject: Cannot pkg upgrade WindowMaker 0.95.7 -> 0.95.8 From: James Geering <j.geering@btinternet.com> To: freebsd-questions@freebsd.org Date: Mon, 09 Oct 2017 09:38:23 -0400 X-Mailer: Evolution 3.12.11 (3.12.11-22.el7) Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 09 Oct 2017 13:44:51 -0000 Hi All, I have just noticed that WindowMaker 0.95.8 has been released in the freshports site; previously I was incorrectly trying to build this myself from the windowmaker site. So now I see I'm able to utilise the binary package manager directly. freeBSD Version 11.1-release #0 r321309 amd64. WindowMaker 0.95.7. When I run "pkg version -vL=" the output does indeed show that windowmaker-0.95.7_5 requires updating to 0.95.8, however, when I try and run "pkg upgrade windowmaker" it reports that it I already have the latest version. I also perform a "portsnap fetch update" but this did not change. the outcome. What am I missing here please? - it seems like these steps should work. Many thanks, James
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1984508980.4145408.1507553196491>