as title: is the behaviour of .* to include . and .. defined in LSB or POSIX or some other specification?
|
|
|
Quoting from the Single Unix specification version 2, volume ”Commands & Utilities", §2.13.3:
There is no exception that would make the second period in The passage above describes the behavior of the shell ( The language is exactly the same in version 3, also known as POSIX:2001 and IEEE 1003.1-2001, which is what most current systems implement. Dash, bash and ksh93 comply with POSIX. Pdksh and zsh (even under In ksh, you can make In bash, you can make |
|||
|
|
|
Probably you mean the functionality in bash expansion about globignore. By default the bash expansion match . and .. but reading the man:
You can set the variable
you are removing only the current directory. The POSIX standard only specify that . is the current directory and .. in the parent of the current directory. The special meaning of .* is interpreted by bash or other shells (or programs like grep). |
|||
|
|
|
The Linux man-page references POSIX.2, 3.13. |
|||
|
|