A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1006 ====================================================================== Reported By: rhansen Assigned To: ====================================================================== Project: 1003.1(2013)/Issue7+TC1 Issue ID: 1006 Category: Shell and Utilities Type: Omission Severity: Editorial Priority: normal Status: Interpretation Required Name: Richard Hansen Organization: BBN User Reference: Section: 2.5.3 PS1 Page Number: 2326 Line Number: 73833 Interp Status: Pending Final Accepted Text: http://austingroupbugs.net/view.php?id=1006#c3310 ====================================================================== Date Submitted: 2015-11-13 08:23 UTC Last Modified: 2016-08-11 17:41 UTC ====================================================================== Summary: PS1 should be subject to command substitution and arithmetic expansion ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0001038 Specification relies upon unspecified b... ======================================================================
---------------------------------------------------------------------- (0003342) kre (reporter) - 2016-08-11 17:41 http://austingroupbugs.net/view.php?id=1006#c3342 ---------------------------------------------------------------------- Re note 3341 First, don't even consider treating a zero length PS1 (or PS2 or PS4) as the same as unset - setting the prompt to null is very useful in some circumstances (like when you're scripting and ddon't want junk corrupting the script). Apart from that, that could be a solution, but why? Do you really want to make it unspecified if someone explicitly sets PS1 to its defined default value? To me that makes no sense. Nor would it be anything like traditional for a shell to leave PS1 undefined and then just output '$ ' in that case - while not exactly safe, I have seen scripts that examine the value of PS1 to decide if they're running as root or not - and other scripts that save and restore it. Seems simpler to me to simply make space after '$' stop being unspecified, and have it mean a literal $ followed by space (as it always has.) That is just fix the wording in 2.6 (and I think somewhere else) and be done with it - it doesn't have to be solved in this issue, just because this one was raised first. Issue History Date Modified Username Field Change ====================================================================== 2015-11-13 08:23 rhansen New Issue 2015-11-13 08:23 rhansen Name => Richard Hansen 2015-11-13 08:23 rhansen Organization => BBN 2015-11-13 08:23 rhansen Section => 2.5.3 PS1 2015-11-13 08:23 rhansen Page Number => 2326 2015-11-13 08:23 rhansen Line Number => 73833 2015-11-13 08:23 rhansen Interp Status => --- 2015-11-13 10:34 joerg Note Added: 0002906 2015-11-13 13:51 kre Note Added: 0002907 2015-11-13 15:44 random832 Note Added: 0002909 2015-11-13 16:04 random832 Note Edited: 0002909 2015-11-13 16:11 geoffclare Note Added: 0002911 2015-11-13 16:33 shware_systems Note Added: 0002913 2015-11-13 16:36 random832 Note Added: 0002914 2015-11-13 16:40 random832 Note Edited: 0002914 2015-11-13 16:47 random832 Note Edited: 0002914 2015-11-13 16:49 random832 Note Edited: 0002914 2015-11-13 16:49 random832 Note Edited: 0002914 2015-11-13 18:21 kre Note Added: 0002918 2015-11-13 18:29 kre Note Added: 0002919 2015-11-13 18:31 random832 Note Added: 0002920 2015-11-14 01:39 rhansen Note Added: 0002932 2015-11-14 01:40 rhansen Note Added: 0002933 2015-11-14 01:41 rhansen Note Edited: 0002933 2015-11-14 01:44 rhansen Note Edited: 0002933 2015-11-14 01:50 rhansen Note Added: 0002934 2015-11-14 10:06 geoffclare Note Added: 0002939 2015-11-14 13:43 kre Note Added: 0002940 2015-11-14 13:49 kre Note Edited: 0002940 2015-11-14 14:01 random832 Note Added: 0002941 2015-11-14 17:26 shware_systems Note Added: 0002944 2015-11-14 17:27 shware_systems Note Edited: 0002944 2015-11-14 21:03 random832 Note Added: 0002945 2015-11-14 21:04 random832 Note Edited: 0002945 2015-11-15 03:26 rhansen Note Added: 0002946 2015-11-15 03:43 rhansen Note Edited: 0002946 2015-11-15 04:22 rhansen Note Added: 0002947 2015-11-15 07:28 kre Note Added: 0002948 2015-11-15 07:55 kre Note Edited: 0002940 2015-11-15 09:14 kre Note Added: 0002949 2015-11-15 09:25 kre Note Edited: 0002949 2015-11-15 09:27 kre Note Edited: 0002949 2015-11-15 09:31 kre Note Edited: 0002949 2015-11-15 10:44 random832 Note Added: 0002950 2015-11-16 09:38 geoffclare Note Added: 0002952 2015-11-16 11:22 joerg Note Added: 0002953 2015-11-16 11:34 joerg Note Added: 0002954 2015-11-16 13:41 joerg Note Added: 0002955 2015-11-16 13:54 random832 Note Added: 0002956 2015-11-16 14:01 joerg Note Added: 0002957 2015-11-16 14:15 random832 Note Added: 0002958 2015-11-16 14:20 joerg Note Added: 0002959 2015-11-16 14:28 random832 Note Added: 0002960 2015-11-16 14:45 joerg Note Added: 0002961 2015-11-16 14:46 joerg Note Edited: 0002961 2015-11-16 15:06 random832 Note Added: 0002962 2015-11-16 15:11 joerg Note Added: 0002963 2015-11-16 15:14 joerg Note Edited: 0002963 2015-11-16 15:15 joerg Note Edited: 0002963 2015-11-16 15:16 joerg Note Edited: 0002963 2015-11-16 15:18 random832 Note Added: 0002964 2015-11-17 21:07 shware_systems Note Added: 0002967 2016-01-13 22:03 mirabilos Note Added: 0003023 2016-01-22 16:42 kre Note Added: 0003031 2016-07-28 15:57 geoffclare Note Added: 0003310 2016-07-28 15:58 geoffclare Interp Status --- => Pending 2016-07-28 15:58 geoffclare Final Accepted Text => http://austingroupbugs.net/view.php?id=1006#c3310 2016-07-28 15:58 geoffclare Status New => Interpretation Required 2016-07-28 15:58 geoffclare Resolution Open => Accepted As Marked 2016-07-28 15:58 geoffclare Tag Attached: tc3-2008 2016-07-28 15:59 geoffclare Note Edited: 0003310 2016-08-06 12:41 kre Note Added: 0003328 2016-08-11 15:29 Don Cragun Relationship added related to 0001038 2016-08-11 16:08 geoffclare Note Edited: 0003310 2016-08-11 16:10 rhansen Note Added: 0003336 2016-08-11 16:11 rhansen Note Edited: 0003336 2016-08-11 16:13 geoffclare Note Added: 0003337 2016-08-11 16:38 rhansen Note Added: 0003338 2016-08-11 16:42 rhansen Note Edited: 0003310 2016-08-11 16:45 rhansen Note Added: 0003339 2016-08-11 16:48 kre Note Added: 0003340 2016-08-11 17:09 shware_systems Note Added: 0003341 2016-08-11 17:17 shware_systems Note Edited: 0003341 2016-08-11 17:26 shware_systems Note Edited: 0003341 2016-08-11 17:36 shware_systems Note Edited: 0003341 2016-08-11 17:37 shware_systems Note Edited: 0003341 2016-08-11 17:41 kre Note Added: 0003342 ======================================================================