about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-11 17:46:08 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-13 00:56:50 +0000
commit152875ba03797e788397be7a3af6c09391dce9f0 (patch)
tree1c1bed175cfff6094e2e21f59de8a4df7bbbec6c
parent5731581c4ce8dc9a918445f6bbac2051674ee4b5 (diff)
downloadzsh-152875ba03797e788397be7a3af6c09391dce9f0.tar.gz
zsh-152875ba03797e788397be7a3af6c09391dce9f0.tar.xz
zsh-152875ba03797e788397be7a3af6c09391dce9f0.zip
37550: _cu: Support Linux line-device names; fail gracefully on OSes matching no known line-device name pattern.
-rw-r--r--ChangeLog6
-rw-r--r--Completion/BSD/Command/_cu2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b99cec5e8..7309cb3f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-01-13  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 37550: Completion/BSD/Command/_cu: _cu: Support Linux
+	line-device names; fail gracefully on OSes matching no known
+	line-device name pattern.
+
 2016-01-10  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 37551: Src/builtin.c: Include the builtin's name in a "bad
diff --git a/Completion/BSD/Command/_cu b/Completion/BSD/Command/_cu
index d4658e397..bdd579519 100644
--- a/Completion/BSD/Command/_cu
+++ b/Completion/BSD/Command/_cu
@@ -2,6 +2,6 @@
 
 _arguments -s -A '-*' \
   '-d[do not block waiting for a carrier to be detected]' \
-  '-l[line to use]:line:(/dev/cuaU#<->(%))' \
+  '-l[line to use]:line:(/dev/(cuaU#<->|ttyS<->)(N%c))' \
   '-s[line speed]:line speed:(75 110 300 1200 2400 4800 9600 19200 38400 57600 115200)' \
   '(-*)1:host:'