VirtualBox

Opened 11 years ago

Closed 8 years ago

#12640 closed defect (obsolete)

TMPDIR on shared folder causes problems with bash heredoc

Reported by: mwader Owned by:
Component: other Version: VirtualBox 4.3.6
Keywords: Cc:
Guest type: Linux Host type: Mac OS X

Description

When running bash with TMPDIR pointing to a shared folder (vboxsf) bash heredoc does not work.

Attaching Vagrantfile and shell script to reproduce.

Steps:

  1. Put Vagrantfile and test.bash in a directory
  2. vagrant up
  3. vagrant ssh
  4. cd /vagrant
  5. bash test.bash

Error: cat: -: No such file or directory

Notes about the strace log file: /vagrant/sh-thd-1390487659 is a temporary heredoc file. Seems somehow fd 0 that is the unlinked heredoc temp file does not survive execve or at least causes fstat64 to return error.

Attachments (3)

Vagrantfile (281 bytes ) - added by mwader 11 years ago.
Vagrantfile
test.bash (69 bytes ) - added by mwader 11 years ago.
Reproduction shell script
strace-f.log (19.5 KB ) - added by mwader 11 years ago.
Output from strace -f bash test.bash

Download all attachments as: .zip

Change History (4)

by mwader, 11 years ago

Attachment: Vagrantfile added

Vagrantfile

by mwader, 11 years ago

Attachment: test.bash added

Reproduction shell script

by mwader, 11 years ago

Attachment: strace-f.log added

Output from strace -f bash test.bash

comment:1 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette