r197748 - base/stable/7/bin/sh/ 7.2-STABLE i386




------------------------------------------------------------------------ r197748 | jilles | 2009-10-04 13:16:11 -0400 (Sun, 04 Oct 2009) | 7 lines

MFC r197371: Mention that NUL characters are not allowed in sh(1) input.

I do not consider this a bug because POSIX permits it and argument strings and environment variables cannot contain '\0' anyway.

PR: bin/25542

------------------------------------------------------------------------

Recently I have been noticing strange happenings of what I believe to be coming from the latest revision of /bin/sh. Prior to this revision it had not happened to the following examples. I am taking this as it could just be a following behavior in sudo due to fixing the first behavior in sh(1) but I am not sure and looking for feedback.

How to repeat: ( Let me know if this is only me. )
# sudo rm -rf /usr/ports/*/*/work

After issuing the above command the process waits for the list of (work) directories to be collected and ends by bombing out with pam timeout error. This could probably be easier seen with higher IO load but it has struck me kind of odd since I have not seen it at all till now. Also once it gets started you can not ^C the process until it has run the full directory tree.

Behavior before, you could issue the command and it would ask you for your password before it would issue any IO to the disk. Is the new behavior called for adjusting your command to sh -c "rm -rf /usr/blah/bloo/bla*" ?

Thanks

--

;; dataix.net!jhell 2048R/89D8547E 2009-09-30
;; BSD since FreeBSD 4.2 Linux since Slackware 2.1
;; 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Grep recursion clarification?
    ... I would like to use grep to search for the presence of 'strings' contained ... in certain files but actually recurse down through the directory tree. ... and most times the recursion does NOT occur. ... Can anyone explain why this type of command is NOT doing recursion? ...
    (comp.unix.shell)
  • Re: 890923 causes application crahes
    ... Pat may be giving you the right idea with the wrong directory tree ... it is a good idea to be registering the *copies* of the .dlls which are ... commands will be just enter in the command line of a cmd window: ... a useful subset of all registerable files: ...
    (microsoft.public.windowsupdate)
  • Re: Looking for a freeware command line tool
    ... for some command line tool that could execute certain commands ... in every subdirectory of a directory tree. ... Mike Matheny ... my employer in any way. ...
    (microsoft.public.windows.server.general)
  • Re: recursive shell commands, is there a simple one?
    ... > directory tree. ... I already have a script which can modify the ... > standard unix command to do it. ...
    (comp.unix.shell)
  • recursive shell commands, is there a simple one?
    ... directory tree. ... I could write a script that would do something like this, ... standard unix command to do it. ...
    (comp.unix.shell)