Bug#764172: dash: consider providing a DASH_VERSION variable

2025-01-13 Thread Yury V. Zaytsev
> On 12. Jan 2025, at 21:59, Andrej Shadura wrote: > > At least in Debian, dash is primarily a shell for scripts, not for > interactive use. (That’s also why we don’t enable libedit.) > So some escape sequences not being available in the prompt are not of a huge > concern for us. > I think th

Bug#764172: dash: consider providing a DASH_VERSION variable

2025-01-12 Thread Andrej Shadura
Hello, On Sun, 12 Jan 2025, at 21:18, Yury V. Zaytsev wrote: >> My answer: you don’t. Dash is POSIX shell, don’t disambiguate it. > Dash does not support escape sequences like \u, \w, \h in the prompt, > while Busybox ASH does support them, so we need to be able to tell one > from another. At

Bug#764172: dash: consider providing a DASH_VERSION variable

2025-01-12 Thread Yury V. Zaytsev
> On 12. Jan 2025, at 20:57, Andrej Shadura wrote: > > On Sun, 12 Jan 2025, at 20:45, Yury V. Zaytsev wrote: > >> We use these variables in our shell detection code to disambiguate >> between different shells with the same name. In this case, we want to >> differentiate Dash from Busybox ASH

Bug#764172: dash: consider providing a DASH_VERSION variable

2025-01-12 Thread Andrej Shadura
Hello, On Sun, 12 Jan 2025, at 20:45, Yury V. Zaytsev wrote: >> Why do you find it useful? What would be the purpose of it? Dash is supposed >> to be POSIX-compatible, so there isn’t a need for feature detection as with >> bash or zsh, and I don’t think the version of dash itself is a useful >>

Bug#764172: dash: consider providing a DASH_VERSION variable

2025-01-12 Thread Yury V. Zaytsev
> On 12. Jan 2025, at 20:29, Andrej Shadura wrote: > > On Sun, 12 Jan 2025, at 19:41, Yury V. Zaytsev wrote: >> We (the developers of Midnight Commander) would also find DASH_VERSION >> to be a useful inclusion. Thanks! > > Why do you find it useful? What would be the purpose of it? Dash is s

Bug#764172: dash: consider providing a DASH_VERSION variable

2025-01-12 Thread Andrej Shadura
Control: tags -1 wontfix Hello, On Sun, 12 Jan 2025, at 19:41, Yury V. Zaytsev wrote: > We (the developers of Midnight Commander) would also find DASH_VERSION > to be a useful inclusion. Thanks! Why do you find it useful? What would be the purpose of it? Dash is supposed to be POSIX-compatible

Bug#764172: dash: consider providing a DASH_VERSION variable

2014-10-05 Thread Mike Miller
Package: dash Version: 0.5.7-4 Severity: wishlist Tags: upstream patch Dear Maintainer, On a Debian system, the only way to determine the version of the dash shell is to ask dpkg. The program itself has no way to report its version. It would be nice if dash provided a DASH_VERSION readonly varia