[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57587] Symlinks are not handeled transparentl
From: |
Lars Kindermann |
Subject: |
[Octave-bug-tracker] [bug #57587] Symlinks are not handeled transparently |
Date: |
Sun, 12 Jan 2020 22:37:43 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0 |
URL:
<https://savannah.gnu.org/bugs/?57587>
Summary: Symlinks are not handeled transparently
Project: GNU Octave
Submitted by: larskindermann
Submitted on: Mon 13 Jan 2020 03:37:42 AM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Symlinks are not handeled transparently in Octave, they are always
dereferenced on entry, both in scripts (cd) and in the GUI.
I'm not sure if this is to be considered a bug, probably it has been discussed
before. But the behaviour is different from all other scripting languages I'm
aware of, including the shells. But I don't know how Matlab behaves.
To demonstrate, create two directories which share a common subdirectory:
mkdir proj1
mkdir proj1/data
mkdir proj2
symlink ../proj1/data proj2/data
An often used script construct like
cd proj1
pwd
cd data
#do stuff
cd ..
pwd
results as expected in
ans = /home/kinder/octave/proj1
ans = /home/kinder/octave/proj1
but doing the same with the symlinked subdir
cd proj2
pwd
cd data
#do stuff
cd ..
pwd
changes the location. The "cd dir; cd .." combination does not return to the
origin:
ans = /home/kinder/octave/proj2
ans = /home/kinder/octave/proj1
So scripts may behave differently on normal vs. symlinked directory
structures.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57587>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57587] Symlinks are not handeled transparently,
Lars Kindermann <=
- [Octave-bug-tracker] [bug #57587] Symlinks are not handeled transparently, Lars Kindermann, 2020/01/12
- [Octave-bug-tracker] [bug #57587] Symlinks are not handeled transparently, John W. Eaton, 2020/01/12
- [Octave-bug-tracker] [bug #57587] Symlinks are not handeled transparently, Lars Kindermann, 2020/01/13
- [Octave-bug-tracker] [bug #57587] Should symlinks follow physical structure or logical structure?, Rik, 2020/01/13
- [Octave-bug-tracker] [bug #57587] Should symlinks follow physical structure or logical structure?, Mike Miller, 2020/01/13
- [Octave-bug-tracker] [bug #57587] Should symlinks follow physical structure or logical structure?, Lars Kindermann, 2020/01/13
- [Octave-bug-tracker] [bug #57587] Should symlinks follow physical structure or logical structure?, Lars Kindermann, 2020/01/14
- [Octave-bug-tracker] [bug #57587] Should symlinks follow physical structure or logical structure?, Andrew Janke, 2020/01/14
- [Octave-bug-tracker] [bug #57587] Should symlinks follow physical structure or logical structure?, John W. Eaton, 2020/01/14
- [Octave-bug-tracker] [bug #57587] Should symlinks follow physical structure or logical structure?, Andrew Janke, 2020/01/14