svn commit: r293115 - head/etc

Jan Beich jbeich at vfemail.net
Mon Jan 4 14:47:43 UTC 2016


Warner Losh <imp at FreeBSD.org> writes:

> Author: imp
> Date: Sun Jan  3 19:18:48 2016
> New Revision: 293115
> URL: https://svnweb.freebsd.org/changeset/base/293115
>
> Log:
>   Use /bin/rm to remove /firstboot*. Otherwise rm -i alias is picked
>   up and can cause issues on boot with the prompts.

Why do you have ~/.profile stuff leaking into rc* boot sequence?
And maybe use |command| instead.

  $ alias rm=foo /bin/rm=foo
  $ rm
  sh: foo: not found
  $ /bin/rm
  sh: foo: not found

  $ command rm
  usage: rm [-f | -i] [-dIPRrvWx] file ...
         unlink file

~/.profile may also contain syntax allowed by bash e.g.,

  $ rm() { bar; }; /bin/rm() { bar; }
  $ rm
  bash: bar: command not found
  $ /bin/rm
  bash: bar: command not found

  $ command rm
  rm: missing operand
  Try 'rm --help' for more information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 602 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20160104/5a650ca3/attachment.sig>


More information about the svn-src-all mailing list