A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1039 ====================================================================== Reported By: kre Assigned To: ====================================================================== Project: 1003.1(2013)/Issue7+TC1 Issue ID: 1039 Category: Shell and Utilities Type: Clarification Requested Severity: Editorial Priority: normal Status: Interpretation Required Name: Robert Elz Organization: User Reference: Section: 2.5.2 Page Number: 2324 Line Number: 73759-73761 Interp Status: Pending Final Accepted Text: http://austingroupbugs.net/view.php?id=1039#c3617 ====================================================================== Date Submitted: 2016-03-26 07:30 UTC Last Modified: 2018-04-26 14:20 UTC ====================================================================== Summary: Which option flags should appear in $- ? ======================================================================
---------------------------------------------------------------------- (0004009) kre (reporter) - 2018-04-26 14:20 http://austingroupbugs.net/view.php?id=1039#c4009 ---------------------------------------------------------------------- Re note: 4007. No, I did not miss the reference to the 1988 vintage sh test. That's much too late, I cannot even imagine what might have been done to that shell (that was probably a SysVR3 shell, which had lots of changes). The one I am referring to was the original 7th edition (and 32V) shell from Bell Labs. In that, there was no --, to set the args, "set a b c" would fail if "a" happened to start with a '-' (it would be interpreted as option flags). The workaround was "set - a b c" but that would reset all the flags (there was no "set +..." in that shell, the when a '-' option was given to "set" it cleared the flags, and then set those given.) Hence, "set -$- a b c" - set the flags back to what they were, and then set the positional parameters. I used this long before ash was needed (which was between 4.3BSD and 4.4 at the time of the lawsuit - sometime early/mid 90's). Get yourself an original 4.2BSD /bin/sh and test that one - Berkeley did almost nothing to sh (everyone used csh) so that should be quite close to the v7 version. Issue History Date Modified Username Field Change ====================================================================== 2016-03-26 07:30 kre New Issue 2016-03-26 07:30 kre Name => Robert Elz 2016-03-26 07:30 kre Section => 2.5.2 2016-03-26 07:30 kre Page Number => unknown 2016-03-26 07:30 kre Line Number => unknown 2016-03-26 08:12 Don Cragun Page Number unknown => 2324 2016-03-26 08:12 Don Cragun Line Number unknown => 73759-73761 2016-03-26 08:12 Don Cragun Interp Status => --- 2017-03-16 16:22 geoffclare Note Added: 0003617 2017-03-16 16:23 geoffclare Interp Status --- => Pending 2017-03-16 16:23 geoffclare Final Accepted Text => http://austingroupbugs.net/view.php?id=1039#c3617 2017-03-16 16:23 geoffclare Status New => Interpretation Required 2017-03-16 16:23 geoffclare Resolution Open => Accepted As Marked 2017-03-16 16:23 geoffclare Tag Attached: tc3-2008 2017-03-16 17:16 kre Note Added: 0003618 2017-03-16 17:31 joerg Note Added: 0003619 2017-03-16 17:38 joerg Note Edited: 0003619 2017-03-16 18:07 kre Note Added: 0003620 2017-03-17 09:09 geoffclare Note Added: 0003622 2017-03-17 10:46 kre Note Added: 0003624 2017-03-17 10:54 joerg Note Added: 0003625 2017-03-17 12:07 kre Note Added: 0003630 2017-03-17 12:51 joerg Note Added: 0003634 2017-03-17 13:05 kre Note Added: 0003636 2018-04-26 11:44 McDutchie Note Added: 0004002 2018-04-26 12:12 joerg Note Added: 0004003 2018-04-26 12:23 joerg Note Edited: 0004003 2018-04-26 12:47 kre Note Added: 0004004 2018-04-26 12:55 kre Note Added: 0004005 2018-04-26 12:59 joerg Note Edited: 0004003 2018-04-26 13:06 joerg Note Added: 0004006 2018-04-26 13:58 McDutchie Note Added: 0004007 2018-04-26 13:59 kre Note Added: 0004008 2018-04-26 14:20 kre Note Added: 0004009 ======================================================================