Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jun 2011 23:12:23 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh eval.c expand.c parser.c parser.h sh.1 src/tools/regression/bin/sh/execution set-x3.0
Message-ID:  <201106092313.p59NDpvs082471@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

jilles      2011-06-09 23:12:23 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               eval.c expand.c parser.c parser.h sh.1 
  Added files:
    tools/regression/bin/sh/execution set-x3.0 
  Log:
  SVN rev 222907 on 2011-06-09 23:12:23Z by jilles
  
  sh: Do parameter expansion before printing PS4 (set -x).
  
  The function name expandstr() and the general idea of doing this kind of
  expansion by treating the text as a here document without end marker is from
  dash.
  
  All variants of parameter expansion and arithmetic expansion also work (the
  latter is not required by POSIX but it does not take extra code and many
  other shells also allow it).
  
  Command substitution is prevented because I think it causes too much code to
  be re-entered (for example creating an unbounded recursion of trace lines).
  
  Unfortunately, our LINENO is somewhat crude, otherwise PS4='$LINENO+ ' would
  be quite useful.
  
  Revision  Changes    Path
  1.108     +3 -2      src/bin/sh/eval.c
  1.87      +1 -0      src/bin/sh/expand.c
  1.113     +44 -0     src/bin/sh/parser.c
  1.18      +1 -0      src/bin/sh/parser.h
  1.166     +2 -2      src/bin/sh/sh.1
  1.1       +9 -0      src/tools/regression/bin/sh/execution/set-x3.0 (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106092313.p59NDpvs082471>