Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14211
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | L A Walsh <bash@tlinx.org> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Bash don't interpret ~ path with multiple options. |
| Date | Sun, 03 Jun 2018 11:27:52 -0700 |
| Lines | 29 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1067.1528050485.1292.bug-bash@gnu.org> (permalink) |
| References | <20180603020815.GA4907@supsup-VirtualBox> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1528050486 14102 208.118.235.17 (3 Jun 2018 18:28:06 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | bug-bash <bug-bash@gnu.org> |
| To | Jungsub Shin <supsup5642@gmail.com> |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Thunderbird |
| In-Reply-To | <20180603020815.GA4907@supsup-VirtualBox> |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] |
| X-Received-From | 173.164.175.65 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14211 |
Show key headers only | View raw
Bash will only replace '~' when it has a space before it and it is not in quotes. It also won't expand '~' if it has special characters in it. In your lines, the '~' after the equal won't be replaced but the one at the end should be. Jungsub Shin wrote: > When i try mount aufs, i find some problem with bash. > > # mount -o remount,append=~/test_aufs/ro1=ro+wh ~/test_aufs/mount > > mount failed with ~/test_aufs/ro1 path isn't exist message. > So i try to debug with strace and i find out bash don't replace ~ > path to absolute path. > > So i try again with split options lile below. > > # mount -o remount -o append=~/test_aufs/ro1=ro+wh ~/test_aufs/mount > > It works well. is this bug?? > Thanks. > >
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Bash don't interpret ~ path with multiple options. L A Walsh <bash@tlinx.org> - 2018-06-03 11:27 -0700
csiph-web