Никто не подскажет начинающему, как заставить работать конструкцию [:class:] в bash?
В man bash сказано так:
Within [ and ], character classes can be specified using the syntax [:class:], where class is one of the following classes defined in the POSIX.2 standard:
alnum alpha ascii blank cntrl digit graph lower print punct space upper word xdigit
A character class matches any character belonging to that class. The word character class matches letters, digits, and the character _.
Я создал файлы b1n, ..., b9n, но команда echo b[:digit:]* выводит b[:digit:]*, а не список файлов.
shopt выдает следующее:
cdable_vars off
cdspell off
checkhash off
checkwinsize off
cmdhist on
dotglob off
execfail off
expand_aliases on
extdebug off
extglob on
extquote on
failglob off
force_fignore on
gnu_errfmt off
histreedit off
histappend off
histverify off
hostcomplete on
huponexit off
interactive_comments on
lithist off
login_shell off
mailwarn off
no_empty_cmd_completion off
nocaseglob off
nullglob off
progcomp on
promptvars on
restricted_shell off
shift_verbose off
sourcepath on
xpg_echo off

Ответ на:
комментарий
от kosmonavt

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум Class select (2013)
- Форум class string (2003)
- Форум java: *.class (2005)
- Форум template<class Key, class Cmp = less<Key_parent> class multiset как? (2007)
- Форум Class not found (2017)
- Форум sizeof(class A) ? (2012)
- Форум dhcpd class subclass (2014)
- Форум [django] class User (2012)
- Форум [haskell] type classes (2011)
- Форум xwininfo: Class InputOutput (2022)