Re: ?maybe? RFE?... read -h ?

2021-09-04 Thread Alex fxmbsw7 Ratchev
.. bash lacks much such smallies On Sun, Sep 5, 2021, 01:21 Greg Wooledge wrote: > On Sat, Sep 04, 2021 at 04:18:09PM -0700, L A Walsh wrote: > > I know how -h can detect a symlink, but I was wondering, is > > there a way for bash to know where the symlink points (without > > using an external p

Re: ?maybe? RFE?... read -h ?

2021-09-04 Thread Greg Wooledge
On Sat, Sep 04, 2021 at 04:18:09PM -0700, L A Walsh wrote: > I know how -h can detect a symlink, but I was wondering, is > there a way for bash to know where the symlink points (without > using an external program)? Nope.

?maybe? RFE?... read -h ?

2021-09-04 Thread L A Walsh
I know how -h can detect a symlink, but I was wondering, is there a way for bash to know where the symlink points (without using an external program)? Like if I'm running a script and check if something is a symlink to a dir that isn't there, is there a way to read the value of a symlink like a "

Re: LINENO is affected by where it is

2021-09-04 Thread Greg Wooledge
On Sat, Sep 04, 2021 at 04:04:05PM -0700, L A Walsh wrote: > LINENO isn't the number of lines executed, but is the > linenumber in the source file it is running in (or the line > in a function for functions already in memory before you > access it. The OP of this thread replied to me that they sov

Re: LINENO is affected by where it is

2021-09-04 Thread L A Walsh
On 2021/09/01 02:36, David Collier wrote: Version: GNU bash, version 5.0.3(1)-release (arm-unknown-linux-gnueabihf) Raspberry Pi using Raspbian. Installed from repo? LINENO goes backwards when run sync LINENO isn't the number of lines executed, but is the linenumber in the source f