IEEE P1003.2b Draft 2 - December 1991 Copyright (c) 1991 by the Institute of Electrical and Electronics Engineers, Inc. 345 East 47th Street New York, NY 10017, USA All rights reserved as an unpublished work. This is an unapproved and unpublished IEEE Standards Draft, subject to change. The publication, distribution, or copying of this draft, as well as all derivative works based on this draft, is expressly prohibited except as set forth below. Permission is hereby granted for IEEE Standards Committee participants to reproduce this document for purposes of IEEE standardization activities only, and subject to the restrictions contained herein. Permission is hereby also granted for member bodies and technical committees of ISO and IEC to reproduce this document for purposes of developing a national position, subject to the restrictions contained herein. Permission is hereby also granted to the preceding entities to make limited copies of this document in an electronic form only for the stated activities. The following restrictions apply to reproducing or transmitting the document in any form: 1) all copies or portions thereof must identify the document's IEEE project number and draft number, and must be accompanied by this entire notice in a prominent location; 2) no portion of this document may be redistributed in any modified or abridged form without the prior approval of the IEEE Standards Department. Other entities seeking permission to reproduce this document, or any portion thereof, for standardization or other activities, must contact the IEEE Standards Department for the appropriate license. Use of information contained in this unapproved draft is at your own risk. IEEE Standards Department Copyright and Permissions 445 Hoes Lane, P.O. Box 1331 Piscataway, NJ 08855-1331, USA +1 (908) 562-3800 +1 (908) 562-1571 [FAX] P1003.2b/D3 Section 3: Revisions to Shell Command Language There are no revisions to Section 3 (yet). Copyright (c) 1992 IEEE. All rights reserved. This is an unapproved IEEE Standards Draft, subject to change. 3 Revisions to Shell Command Language 7 P1003.2b/D3 Section 4: Revisions to Execution Environment Utilities 4.5 cd - Change working directory _E_d_i_t_o_r'_s _N_o_t_e: _T_h_e _f_o_l_l_o_w_i_n_g _r_a_t_i_o_n_a_l_e _w_i_l_l _b_e _a_d_d_e_d _t_o _E._4._5, _b_u_t _i_s _k_e_p_t _h_e_r_e _w_i_t_h _c_d for this draft: BEGIN_RATIONALE _c_d__R_a_t_i_o_n_a_l_e_.__(_T_h_i_s__s_u_b_c_l_a_u_s_e__i_s__n_o_t__a__p_a_r_t__o_f__P_1_0_0_3_._2_b_) Some historical shells, such as the KornShell, took special actions when the directory name contained a dot-dot component, selecting the logical parent of the directory, rather than the actual parent directory (i.e., it moved up one level toward the / in the pathname, remembering what the user typed, rather than performing the equivalent of the C-language call chdir(".."); In such a shell, the following commands would not be equivalent for all directories: cd .. && ls ls .. This behavior is not consistent with the definition of dot-dot and is not allowed by this standard, although it would be allowed as an extension if triggered by an environment variable or command-line option. END_RATIONALE Copyright (c) 1992 IEEE. All rights reserved. This is an unapproved IEEE Standards Draft, subject to change. 4.5 cd - Change working directory 9