dash

Scott James Remnant scott at ubuntu.com
Thu Sep 14 21:14:17 BST 2006


On Thu, 2006-09-14 at 21:13 +0100, Scott James Remnant wrote:

> On Thu, 2006-09-14 at 14:59 -0500, Rocco Stanzione wrote:
> 
> > On Thursday 14 September 2006 14:45, Scott James Remnant wrote:
> > [snip]
> > > "test -a" is a very definite bashism for "if file exists".  The correct
> > > POSIX for that is -e.
> > 
> > trappist at monk:~$ dash
> > $ [[ -e /usr/src/linux/include/asm ]] && echo YES
> > dash: [[: not found
> > 
> > This should be valid in a POSIX-compliant shell.
> > 
> No it shouldn't.
> 
> [[ is not POSIX.
> 
Indeed, to quote the URL _you_ gave again:

	The KornShell-derived conditional command
	(double bracket [[]]) was removed from the shell
	command language description in an early proposal.

Scott
-- 
Scott James Remnant
scott at ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20060914/0e8ac4b7/attachment.pgp 


More information about the ubuntu-devel mailing list