| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: sh.1,v 1.132 2017/04/29 15:26:44 kre Exp $ | | 1 | .\" $NetBSD: sh.1,v 1.133 2017/04/30 16:02:48 wiz Exp $ |
2 | .\" Copyright (c) 1991, 1993 | | 2 | .\" Copyright (c) 1991, 1993 |
3 | .\" The Regents of the University of California. All rights reserved. | | 3 | .\" The Regents of the University of California. All rights reserved. |
4 | .\" | | 4 | .\" |
5 | .\" This code is derived from software contributed to Berkeley by | | 5 | .\" This code is derived from software contributed to Berkeley by |
6 | .\" Kenneth Almquist. | | 6 | .\" Kenneth Almquist. |
7 | .\" | | 7 | .\" |
8 | .\" Redistribution and use in source and binary forms, with or without | | 8 | .\" Redistribution and use in source and binary forms, with or without |
9 | .\" modification, are permitted provided that the following conditions | | 9 | .\" modification, are permitted provided that the following conditions |
10 | .\" are met: | | 10 | .\" are met: |
11 | .\" 1. Redistributions of source code must retain the above copyright | | 11 | .\" 1. Redistributions of source code must retain the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer. | | 12 | .\" notice, this list of conditions and the following disclaimer. |
13 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 13 | .\" 2. Redistributions in binary form must reproduce the above copyright |
14 | .\" notice, this list of conditions and the following disclaimer in the | | 14 | .\" notice, this list of conditions and the following disclaimer in the |
| @@ -324,27 +324,27 @@ but can slow execution. | | | @@ -324,27 +324,27 @@ but can slow execution. |
324 | The | | 324 | The |
325 | .Nm | | 325 | .Nm |
326 | can be compiled to always use | | 326 | can be compiled to always use |
327 | .Xr fork 2 | | 327 | .Xr fork 2 |
328 | in which case altering the | | 328 | in which case altering the |
329 | .Fl F | | 329 | .Fl F |
330 | flag has no effect. | | 330 | flag has no effect. |
331 | .It Fl h Em trackall | | 331 | .It Fl h Em trackall |
332 | Bind commands in functions to file system paths when the function is defined. | | 332 | Bind commands in functions to file system paths when the function is defined. |
333 | When off, | | 333 | When off, |
334 | the file system is searched for commands each time the function is invoked. | | 334 | the file system is searched for commands each time the function is invoked. |
335 | (Not implemented.) | | 335 | (Not implemented.) |
336 | .It Fl p Em nopriv | | 336 | .It Fl p Em nopriv |
337 | Do not attempt to reset effective uid if it does not match uid. | | 337 | Do not attempt to reset effective UID if it does not match UID. |
338 | This is not set by default to help avoid incorrect usage by setuid | | 338 | This is not set by default to help avoid incorrect usage by setuid |
339 | root programs via | | 339 | root programs via |
340 | .Xr system 3 | | 340 | .Xr system 3 |
341 | or | | 341 | or |
342 | .Xr popen 3 . | | 342 | .Xr popen 3 . |
343 | .It "\ \ " Em cdprint | | 343 | .It "\ \ " Em cdprint |
344 | Make an interactive shell always print the new directory name when | | 344 | Make an interactive shell always print the new directory name when |
345 | changed by the | | 345 | changed by the |
346 | .Ic cd | | 346 | .Ic cd |
347 | command. | | 347 | command. |
348 | .It "\ \ " Em nolog | | 348 | .It "\ \ " Em nolog |
349 | Prevent the entry of function definitions into the command history (see | | 349 | Prevent the entry of function definitions into the command history (see |
350 | .Ic fc | | 350 | .Ic fc |
| @@ -2049,27 +2049,27 @@ is | | | @@ -2049,27 +2049,27 @@ is |
2049 | or its equivalent, EXIT, | | 2049 | or its equivalent, EXIT, |
2050 | the action is executed when the shell exits. | | 2050 | the action is executed when the shell exits. |
2051 | .Ar action | | 2051 | .Ar action |
2052 | may be null, which cause the specified signals to be ignored. | | 2052 | may be null, which cause the specified signals to be ignored. |
2053 | With | | 2053 | With |
2054 | .Ar action | | 2054 | .Ar action |
2055 | set to | | 2055 | set to |
2056 | .Sq - | | 2056 | .Sq - |
2057 | the specified signals are set to their default action. | | 2057 | the specified signals are set to their default action. |
2058 | If the first | | 2058 | If the first |
2059 | .Ar signal | | 2059 | .Ar signal |
2060 | is specified in its numeric form, then | | 2060 | is specified in its numeric form, then |
2061 | .Ar action | | 2061 | .Ar action |
2062 | can be ommitted to achieve the same effect. | | 2062 | can be omitted to achieve the same effect. |
2063 | This archaic, | | 2063 | This archaic, |
2064 | but still standard, | | 2064 | but still standard, |
2065 | form should not be relied upon, use the explicit | | 2065 | form should not be relied upon, use the explicit |
2066 | .Sq - | | 2066 | .Sq - |
2067 | action. | | 2067 | action. |
2068 | .Pp | | 2068 | .Pp |
2069 | When the shell forks off a subshell, it resets trapped (but not ignored) | | 2069 | When the shell forks off a subshell, it resets trapped (but not ignored) |
2070 | signals to the default action. | | 2070 | signals to the default action. |
2071 | On non-interactive shells, the | | 2071 | On non-interactive shells, the |
2072 | .Ic trap | | 2072 | .Ic trap |
2073 | command has no effect on signals that were | | 2073 | command has no effect on signals that were |
2074 | ignored on entry to the shell. | | 2074 | ignored on entry to the shell. |
2075 | On interactive shells, the | | 2075 | On interactive shells, the |