Bug 2450 - COLUMNS нигде не \'задается\'
Summary: COLUMNS нигде не \'задается\'
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: initscripts (show other bugs)
Version: unstable
Hardware: all Linux
: P4 enhancement
Assignee: Dmitry V. Levin
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-31 12:44 MSD by dfo
Modified: 2003-08-25 15:18 MSD (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dfo 2003-03-31 12:44:27 MSD
Переменная COLUMNS нигде ни во что не устанавливается.
---

---

Comment 1 Dmitry V. Levin 2003-03-31 13:41:59 MSD
This variable is ALT bash specific:

$ COLUMNS= sh -c \'echo COLUMNS=$COLUMNS\' 2>/dev/null
COLUMNS=
$ COLUMNS= sh -c \'echo COLUMNS=$COLUMNS\'            
COLUMNS=80
Comment 2 Dmitry V. Levin 2003-03-31 13:41:59 MSD
This variable is ALT bash specific:

$ COLUMNS= sh -c \'echo COLUMNS=$COLUMNS\' 2>/dev/null
COLUMNS=
$ COLUMNS= sh -c \'echo COLUMNS=$COLUMNS\'            
COLUMNS=80
Comment 3 Dmitry V. Levin 2003-04-19 23:38:41 MSD
Поскольку переменной все-таки может не быть (ввиду версии /bin/sh), некий workaround необходим.
Comment 4 Dmitry V. Levin 2003-04-19 23:38:41 MSD
Поскольку переменной все-таки может не быть (ввиду версии /bin/sh), некий workaround необходим.
Comment 5 Dmitry V. Levin 2003-04-19 23:39:10 MSD
Fixed in 5.49-ipl54mdk
Comment 6 Dmitry V. Levin 2003-04-19 23:39:10 MSD
Fixed in 5.49-ipl54mdk