Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Apr 2010 22:04:44 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh expand.c src/tools/regression/bin/sh/expansion tilde2.0
Message-ID:  <201004032208.o33M8SCO025810@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2010-04-03 22:04:44 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               expand.c 
  Added files:
    tools/regression/bin/sh/expansion tilde2.0 
  Log:
  SVN rev 206150 on 2010-04-03 22:04:44Z by jilles
  
  sh: Do tilde expansion in substitutions.
  
  This applies to word in ${v-word}, ${v+word}, ${v=word}, ${v?word} (which
  inherits quoting from the outside) and in ${v%word}, ${v%%word}, ${v#word},
  ${v##word} (which does not inherit any quoting).
  
  In all cases tilde expansion is only attempted at the start of word, even if
  word contains spaces. This agrees with POSIX and other shells.
  
  This is the last part of the patch tested in the exp-run.
  
  Exp-run done by: erwin (with some other sh(1) changes)
  
  Revision  Changes    Path
  1.62      +3 -3      src/bin/sh/expand.c
  1.1       +90 -0     src/tools/regression/bin/sh/expansion/tilde2.0 (new)



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