|
|
If the tilde-prefix is a `~+', the value of the shell variable .SM PWD replaces the tilde-prefix. If the tilde-prefix is a `~-', the value of the shell variable .SM .BR OLDPWD , if it is set, is substituted. If the characters following the tilde in the tilde-prefix consist of a number N\fP, optionally prefixed by a `+' or a `-', the tilde-prefix is replaced with the corresponding element from the directory stack, as it would be displayed by the dirs builtin invoked with the tilde-prefix as an argument. If the characters following the tilde in the tilde-prefix consist of a number without a leading `+' or `-', `+' is assumed.
If the login name is invalid, or the tilde expansion fails, the word is unchanged.
Each variable assignment is checked for unquoted tilde-prefixes immediately following a : or .BR = . In these cases, tilde expansion is also performed. Consequently, one may use file names with tildes in assignments to .SM .BR PATH , .SM .BR MAILPATH , and .SM .BR CDPATH , and the shell assigns the expanded value.
Web: http://shell.tjgy.com Email:support@tjgy.com