dash

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


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.

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/3c68d11f/attachment.pgp 


More information about the ubuntu-devel mailing list