🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4034

~ expansion in bash

#4034
From: SiKing
Date: Wed, 17 Jan 2007 13:49
30 lines
1769 bytes
Hi all,

I ran into a strange "thing" with ~ expansion in bash. I do not know if I found 
a bug or a feature.

$ bash --version
GNU bash, version 3.1.14(1)-release (sparc-sun-solaris2.8)
Copyright (C) 2005 Free Software Foundation, Inc.
$ touch "~/something strange"; echo $?
touch: ~/something strange cannot create
1
$ touch ~/something\ strange; echo $?
0
$ cd ~
$ touch "something strange"; echo $?
0


Is this a known thing?

Thanx, SK.

Note: Followup-To set to c.u.s.


-- 
mean people suck, naughty people swallow  :o
-----
Candy for spammers:
http://members.shaw.ca/grubb/spamthis.html
Technical Details
Message-ID: <bSprh.2$su3.154776@news.sisna.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news.sisna.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1012a6,99f79207e53a8a2a,start
X-Google-Thread: 1054c0,99f79207e53a8a2a,start
X-Google-Attributes: gid1012a6,gid1054c0,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news.sisna.com!not-for-mail
From: SiKing <nospam@noway.invalid>
Organization: A alphabetically be in organised sentence should words.
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: comp.unix.shell,gnu.bash
Followup-To: comp.unix.shell
Subject: ~ expansion in bash
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 30
Message-ID: <bSprh.2$su3.154776@news.sisna.com>
Date: Wed, 17 Jan 2007 13:49:20 +0000
NNTP-Posting-Host: 209.228.189.1
X-Complaints-To: newsabuse@ikano.com
X-Trace: news.sisna.com 1169041927 209.228.189.1 (Wed, 17 Jan 2007 06:52:07 MST)
NNTP-Posting-Date: Wed, 17 Jan 2007 06:52:07 MST
X-Received-Date: Wed, 17 Jan 2007 06:52:07 MST (news.sisna.com)