getopt_long.3 (2298a6e7660d23db767b1ff466fc08e2f9488d49) | getopt_long.3 (f2fd86b76ea12bb6557e14f9ab52d4197a1cf99b) |
---|---|
1.\" $OpenBSD: getopt_long.3,v 1.10 2004/01/06 23:44:28 fgsch Exp $ 2.\" $NetBSD: getopt_long.3,v 1.14 2003/08/07 16:43:40 agc Exp $ 3.\" 4.\" Copyright (c) 1988, 1991, 1993 5.\" The Regents of the University of California. All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 280 unchanged lines hidden (view full) --- 289This functionality is provided for backward compatibility with 290programs, such as 291.Xr su 1 , 292that use 293.Ql - 294as an option flag. 295This practice is wrong, and should not be used in any current development. 296.El | 1.\" $OpenBSD: getopt_long.3,v 1.10 2004/01/06 23:44:28 fgsch Exp $ 2.\" $NetBSD: getopt_long.3,v 1.14 2003/08/07 16:43:40 agc Exp $ 3.\" 4.\" Copyright (c) 1988, 1991, 1993 5.\" The Regents of the University of California. All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 280 unchanged lines hidden (view full) --- 289This functionality is provided for backward compatibility with 290programs, such as 291.Xr su 1 , 292that use 293.Ql - 294as an option flag. 295This practice is wrong, and should not be used in any current development. 296.El |
297.\" .It 298.\" Handling of 299.\" .Ql :: 300.\" in options string in presence of 301.\" .Ev POSIXLY_CORRECT : 302.\" .Bl -tag -width ".Bx" 303.\" .It Both 304.\" .Tn GNU 305.\" and 306.\" .Bx 307.\" ignore 308.\" .Ev POSIXLY_CORRECT 309.\" here and take 310.\" .Ql :: 311.\" to 312.\" mean the preceding option takes an optional argument. 313.\" .El |
|
297.It | 314.It |
298Handling of 299.Ql :: 300in options string in presence of 301.Ev POSIXLY_CORRECT : 302.Bl -tag -width ".Bx" 303.It Both 304.Tn GNU 305and 306.Bx 307ignore 308.Ev POSIXLY_CORRECT 309here and take 310.Ql :: 311to 312mean the preceding option takes an optional argument. 313.El 314.It | |
315Return value in case of missing argument if first character 316(after 317.Ql + 318or 319.Ql - ) 320in option string is not 321.Ql \&: : 322.Bl -tag -width ".Bx" --- 107 unchanged lines hidden (view full) --- 430set to 0 and 431.Va optarg 432set to 433.Dv NULL 434(as 435.Tn GNU Ns 's 436man page documents). 437.El | 315Return value in case of missing argument if first character 316(after 317.Ql + 318or 319.Ql - ) 320in option string is not 321.Ql \&: : 322.Bl -tag -width ".Bx" --- 107 unchanged lines hidden (view full) --- 430set to 0 and 431.Va optarg 432set to 433.Dv NULL 434(as 435.Tn GNU Ns 's 436man page documents). 437.El |
438.\" .It 439.\" The error messages are different. |
|
438.It | 440.It |
439The error messages are different. 440.It | |
441.Bx 442does not permute the argument vector at the same points in 443the calling sequence as 444.Tn GNU 445does. 446The aspects normally used by 447the caller (ordering after \-1 is returned, value of 448.Va optind --- 58 unchanged lines hidden --- | 441.Bx 442does not permute the argument vector at the same points in 443the calling sequence as 444.Tn GNU 445does. 446The aspects normally used by 447the caller (ordering after \-1 is returned, value of 448.Va optind --- 58 unchanged lines hidden --- |